Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/05-windows-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ jobs:
Copy-Item $dll.FullName -Destination . -Force
Write-Host "Copied $dllName from $($dll.DirectoryName)"
} else {
Write-Error "$dllName not found anywhere under $buildDir"
Write-Host "WARNING: $dllName not found (all-in-one libs are static on MSVC, DLL not needed)"
}
}
}
Expand Down
15 changes: 12 additions & 3 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,18 @@ function(zvec_add_all_in_one_shared TARGET_NAME OUTPUT_NAME)
"// Auto-generated stub for ${TARGET_NAME}\n"
)

add_library(${TARGET_NAME} SHARED
${CMAKE_CURRENT_BINARY_DIR}/${TARGET_NAME}_stub.cc
)
# MSVC: build as STATIC to avoid LNK1189 (PE/COFF 65535 export limit).
# WINDOWS_EXPORT_ALL_SYMBOLS is silently ignored for static libraries.
# Consumers (fts_bench, examples) still link against this target normally.
if(MSVC)
add_library(${TARGET_NAME} STATIC
${CMAKE_CURRENT_BINARY_DIR}/${TARGET_NAME}_stub.cc
)
else()
add_library(${TARGET_NAME} SHARED
${CMAKE_CURRENT_BINARY_DIR}/${TARGET_NAME}_stub.cc
)
endif()

set_target_properties(${TARGET_NAME} PROPERTIES
OUTPUT_NAME "${OUTPUT_NAME}"
Expand Down
Loading