File tree 1 file changed +9
-4
lines changed
1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -39,6 +39,12 @@ else(NOT CHAKRACORE_BUILD_SH)
39
39
unset (LIBS_ONLY_BUILD_SH CACHE )
40
40
set (CC_LIBS_ONLY_BUILD 1)
41
41
endif ()
42
+
43
+ if (CLANG_SANITIZE_SH)
44
+ set (CLANG_SANITIZE ${CLANG_SANITIZE_SH} )
45
+ unset (CLANG_SANITIZE_SH CACHE )
46
+ endif ()
47
+
42
48
endif (NOT CHAKRACORE_BUILD_SH)
43
49
44
50
if (CC_USES_SYSTEM_ARCH_SH OR NOT CHAKRACORE_BUILD_SH)
@@ -573,12 +579,11 @@ endif()
573
579
include_directories (SYSTEM /usr/local/include )
574
580
include (pal/src/configure.cmake)
575
581
576
- # this should be after `detect feature` to not to affect feature detection
577
- # Clang -fsanitize.
578
- if (CLANG_SANITIZE_SH )
582
+ # Clang sanitizer support, this should be after `detect feature` to not to
583
+ # affect feature detection
584
+ if (CLANG_SANITIZE )
579
585
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fsanitize=${CLANG_SANITIZE_SH} " )
580
586
set (CMAKE_CXX_LINK_FLAGS "${CMAKE_CXX_LINK_FLAGS} -fsanitize=${CLANG_SANITIZE_SH} " )
581
- unset (CLANG_SANITIZE_SH CACHE ) # don't cache
582
587
endif ()
583
588
584
589
add_subdirectory (pal)
You can’t perform that action at this time.
0 commit comments