mirror of
https://github.com/exaloop/codon.git
synced 2025-06-03 15:03:52 +08:00
Fix Asan flags
This commit is contained in:
parent
bbdd51cf9e
commit
2bf3709d33
@ -74,8 +74,8 @@ else()
|
||||
-Wl,--no-whole-archive)
|
||||
endif()
|
||||
if(ASAN)
|
||||
target_compile_options(codonrt PRIVATE "-fno-omit-frame-pointer" "-fsanitize=address")
|
||||
target_link_libraries(codonrt PRIVATE "-fno-omit-frame-pointer" "-fsanitize=address")
|
||||
target_compile_options(codonrt PRIVATE "-fno-omit-frame-pointer" "-fsanitize=address" "-fsanitize-recover=address")
|
||||
target_link_libraries(codonrt PRIVATE "-fno-omit-frame-pointer" "-fsanitize=address" "-fsanitize-recover=address")
|
||||
endif()
|
||||
add_custom_command(TARGET codonrt POST_BUILD
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different $<TARGET_FILE:omp> ${CMAKE_BINARY_DIR})
|
||||
@ -297,8 +297,8 @@ if(CODON_JUPYTER)
|
||||
target_link_libraries(codonc PRIVATE xeus-static)
|
||||
endif()
|
||||
if(ASAN)
|
||||
target_compile_options(codonc PRIVATE "-fno-omit-frame-pointer" "-fsanitize=address")
|
||||
target_link_libraries(codonc PRIVATE "-fno-omit-frame-pointer" "-fsanitize=address")
|
||||
target_compile_options(codonc PRIVATE "-fno-omit-frame-pointer" "-fsanitize=address" "-fsanitize-recover=address")
|
||||
target_link_libraries(codonc PRIVATE "-fno-omit-frame-pointer" "-fsanitize=address" "-fsanitize-recover=address")
|
||||
endif()
|
||||
if(CMAKE_BUILD_TYPE MATCHES Debug)
|
||||
set_source_files_properties(codon_rules.cpp codon/parser/peg/peg.cpp PROPERTIES COMPILE_FLAGS "-O2")
|
||||
|
Loading…
x
Reference in New Issue
Block a user