Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit871870b

Browse files
committed
build(EXITFREE): enable EXITFREE on Debug builds
1 parentdbcb76b commit871870b

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

‎src/nvim/CMakeLists.txt‎

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -206,15 +206,16 @@ if(NOT "${MIN_LOG_LEVEL}" MATCHES "^$")
206206
add_definitions(-DMIN_LOG_LEVEL=${MIN_LOG_LEVEL})
207207
endif()
208208

209+
if(DEBUGOR CLANG_ASAN_UBSANOR CLANG_MSANOR CLANG_TSAN)
210+
add_definitions(-DEXITFREE)
211+
endif()
212+
209213
get_directory_property(gen_cdefsCOMPILE_DEFINITIONS)
210214
foreach(gen_cdef${gen_cdefs} DO_NOT_DEFINE_EMPTY_ATTRIBUTES)
211215
if(NOT${gen_cdef}MATCHES"INCLUDE_GENERATED_DECLARATIONS")
212216
list(APPEND gen_cflags"-D${gen_cdef}")
213217
endif()
214218
endforeach()
215-
if(CLANG_ASAN_UBSANOR CLANG_MSANOR CLANG_TSAN)
216-
list(APPEND gen_cflags"-DEXITFREE")
217-
endif()
218219

219220
get_directory_property(gen_includesINCLUDE_DIRECTORIES)
220221
foreach(gen_include${gen_includes}${LUA_PREFERRED_INCLUDE_DIRS})
@@ -710,17 +711,14 @@ if(CLANG_ASAN_UBSAN)
710711
set(SANITIZE_RECOVER -fno-sanitize-recover)# Clang 3.5-
711712
endif()
712713
endif()
713-
set_property(TARGET nvimAPPEND PROPERTYCOMPILE_DEFINITIONS EXITFREE)
714714
set_property(TARGET nvimAPPEND PROPERTY COMPILE_OPTIONS${SANITIZE_RECOVER} -fno-omit-frame-pointer -fno-optimize-sibling-calls -fsanitize=address -fsanitize=undefined -fsanitize-blacklist=${PROJECT_SOURCE_DIR}/src/.asan-blacklist)
715715
set_property(TARGET nvim APPEND_STRING PROPERTYLINK_FLAGS"-fsanitize=address -fsanitize=undefined ")
716716
elseif(CLANG_MSAN)
717717
message(STATUS"Enabling Clang memory sanitizer for nvim.")
718-
set_property(TARGET nvimAPPEND PROPERTYCOMPILE_DEFINITIONS EXITFREE)
719718
set_property(TARGET nvimAPPEND PROPERTY COMPILE_OPTIONS -fsanitize=memory -fsanitize-memory-track-origins -fno-omit-frame-pointer -fno-optimize-sibling-calls)
720719
set_property(TARGET nvim APPEND_STRING PROPERTYLINK_FLAGS"-fsanitize=memory -fsanitize-memory-track-origins ")
721720
elseif(CLANG_TSAN)
722721
message(STATUS"Enabling Clang thread sanitizer for nvim.")
723-
set_property(TARGET nvimAPPEND PROPERTYCOMPILE_DEFINITIONS EXITFREE)
724722
set_property(TARGET nvimAPPEND PROPERTY COMPILE_OPTIONS -fsanitize=thread)
725723
set_property(TARGET nvimAPPEND PROPERTY COMPILE_OPTIONS -fPIE)
726724
set_property(TARGET nvim APPEND_STRING PROPERTYLINK_FLAGS"-fsanitize=thread ")

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp