gc sections on linux

This commit is contained in:
2025-05-14 19:55:29 -04:00
parent b15a598f2d
commit 318fe49c31

View File

@@ -33,6 +33,9 @@ add_compile_options(
if(CMAKE_SYSTEM_PROCESSOR STREQUAL x86_64) if(CMAKE_SYSTEM_PROCESSOR STREQUAL x86_64)
add_compile_options(-mavx) add_compile_options(-mavx)
endif() endif()
if(CMAKE_SYSTEM_NAME STREQUAL Linux)
add_link_options(LINKER:--gc-sections)
endif()
add_subdirectory(third_party) add_subdirectory(third_party)