Skip to content

Commit b83dead

Browse files
committed
More fixes
Signed-off-by: cyy <cyyever@outlook.com>
1 parent 6518b55 commit b83dead

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

cmake/modules/CxxCompilerSetup.cmake

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,9 @@ BLOCK_PRINT(
6060
)
6161

6262
# Strip all symbols from the .SO file after building
63-
add_link_options($<$<CONFIG:RELEASE>:-s>)
63+
if(NOT MSVC AND NOT APPLE)
64+
add_link_options($<$<CONFIG:RELEASE>:-s>)
65+
endif()
6466

6567
# Enable compile commands to compile_commands.json for debugging
6668
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)

0 commit comments

Comments
 (0)