Rebased LTO fix for coroutines
Fixes: lp:1793329 * https://bugs.launchpad.net/kicad/+bug/1793329
This commit is contained in:
parent
bd8721d6b9
commit
e58d9606dd
|
@ -359,6 +359,14 @@ if( BUILD_GITHUB_PLUGIN )
|
||||||
)
|
)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
# Link-time optimization (LTO) on GCC conflicts with embedded assembly (__asm),
|
||||||
|
# following GCC's recommendation to disable LTO per translation unit.
|
||||||
|
if( "${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang" OR "${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
|
||||||
|
set_source_files_properties( system/libcontext.cpp PROPERTIES
|
||||||
|
COMPILE_FLAGS "-fno-lto"
|
||||||
|
)
|
||||||
|
endif()
|
||||||
|
|
||||||
set( COMMON_SRCS
|
set( COMMON_SRCS
|
||||||
${COMMON_SRCS}
|
${COMMON_SRCS}
|
||||||
system/libcontext.cpp
|
system/libcontext.cpp
|
||||||
|
|
Loading…
Reference in New Issue