Win32/MSVC: garbage-collect symbols even in debug builds.
This shrinks debug build binaries by ~1/3.pull/135/head
parent
d1ddc6ee07
commit
679a1f0ded
|
@ -224,7 +224,7 @@ target_link_libraries(solvespace
|
|||
|
||||
if(MSVC)
|
||||
set_target_properties(solvespace PROPERTIES
|
||||
LINK_FLAGS "/MANIFEST:NO /SAFESEH:NO")
|
||||
LINK_FLAGS "/MANIFEST:NO /SAFESEH:NO /INCREMENTAL:NO /OPT:REF")
|
||||
endif()
|
||||
|
||||
# solvespace headless library
|
||||
|
@ -263,6 +263,11 @@ target_link_libraries(solvespace-cli
|
|||
add_dependencies(solvespace-cli
|
||||
resources)
|
||||
|
||||
if(MSVC)
|
||||
set_target_properties(solvespace-cli PROPERTIES
|
||||
LINK_FLAGS "/INCREMENTAL:NO /OPT:REF")
|
||||
endif()
|
||||
|
||||
# solvespace unix package
|
||||
|
||||
if(NOT (WIN32 OR APPLE))
|
||||
|
|
Loading…
Reference in New Issue