gc sections on linux
This commit is contained in:
@@ -33,6 +33,9 @@ add_compile_options(
|
||||
if(CMAKE_SYSTEM_PROCESSOR STREQUAL x86_64)
|
||||
add_compile_options(-mavx)
|
||||
endif()
|
||||
if(CMAKE_SYSTEM_NAME STREQUAL Linux)
|
||||
add_link_options(LINKER:--gc-sections)
|
||||
endif()
|
||||
|
||||
add_subdirectory(third_party)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user