Fix tdweb building.
This commit is contained in:
parent
26d2ee649d
commit
7d5d7eb990
@ -60,6 +60,8 @@ function(td_set_up_compiler)
|
|||||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -ffunction-sections -fdata-sections")
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -ffunction-sections -fdata-sections")
|
||||||
if (CMAKE_SYSTEM_NAME STREQUAL "SunOS")
|
if (CMAKE_SYSTEM_NAME STREQUAL "SunOS")
|
||||||
set(TD_LINKER_FLAGS "-Wl,-z,ignore")
|
set(TD_LINKER_FLAGS "-Wl,-z,ignore")
|
||||||
|
elseif (EMSCRIPTEN)
|
||||||
|
set(TD_LINKER_FLAGS "-Wl,--gc-sections")
|
||||||
else()
|
else()
|
||||||
set(TD_LINKER_FLAGS "-Wl,--gc-sections -Wl,--exclude-libs,ALL")
|
set(TD_LINKER_FLAGS "-Wl,--gc-sections -Wl,--exclude-libs,ALL")
|
||||||
endif()
|
endif()
|
||||||
|
Loading…
Reference in New Issue
Block a user