mirror of https://github.com/AxioDL/metaforce.git
Add -fno-limit-debug-info with Clang
This commit is contained in:
parent
21b4e72100
commit
8b4e7c5ec4
|
@ -99,11 +99,6 @@ if(MSVC)
|
|||
endif()
|
||||
|
||||
else()
|
||||
if(${CMAKE_BUILD_TYPE} STREQUAL Debug)
|
||||
# For libstdc++ shipped with GCC 9.1, this is required to summarize std::string
|
||||
#add_compile_definitions(_GLIBCXX_DEBUG=1)
|
||||
endif()
|
||||
|
||||
if(${URDE_VECTOR_ISA} STREQUAL "native")
|
||||
add_compile_options(-march=native)
|
||||
message(STATUS "Building with native ISA")
|
||||
|
@ -161,6 +156,10 @@ endif()
|
|||
|
||||
if("${CMAKE_SYSTEM_NAME}" STREQUAL "Linux")
|
||||
if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
|
||||
if(${CMAKE_BUILD_TYPE} STREQUAL Debug)
|
||||
# This is required to summarize std::string
|
||||
add_compile_options(-fno-limit-debug-info)
|
||||
endif()
|
||||
option(USE_LD_LLD "Link with LLD" ON)
|
||||
elseif("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
|
||||
option(USE_LD_GOLD "Link with GNU Gold" ON)
|
||||
|
|
Loading…
Reference in New Issue