Skip to content

Commit 18520d4

Browse files
committed
Readd the null check
1 parent 5688536 commit 18520d4

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

libc/cmake/modules/LLVMLibCTestRules.cmake

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@ function(_get_common_test_compile_options output_var c_test flags)
33
_get_compile_options_from_config(config_flags)
44
_get_compile_options_from_arch(arch_flags)
55

6+
# Death test executor is only available in Linux for now.
7+
if(NOT ${LIBC_TARGET_OS} STREQUAL "linux")
8+
list(REMOVE_ITEM config_flags "-DLIBC_ADD_NULL_CHECKS")
9+
endif()
10+
611
set(compile_options
712
${LIBC_COMPILE_OPTIONS_DEFAULT}
813
${LIBC_TEST_COMPILE_OPTIONS_DEFAULT}

0 commit comments

Comments
 (0)