Implement keepGoing in asm if musttail is not available

This commit is contained in:
2024-10-10 16:52:27 -07:00
parent 0dc657bfeb
commit 1faeb220d5
2 changed files with 19 additions and 5 deletions
-5
View File
@@ -38,11 +38,6 @@ if(NOT APPLE)
add_compile_options(-g -fno-omit-frame-pointer)
endif()
# work around lack of musttail for gcc
if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU" AND CMAKE_BUILD_TYPE STREQUAL "Debug")
add_compile_options(-O1 -foptimize-sibling-calls)
endif()
set(full_relro_flags "-pie;LINKER:-z,relro,-z,now,-z,noexecstack")
cmake_push_check_state()
list(APPEND CMAKE_REQUIRED_LINK_OPTIONS ${full_relro_flags})