File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Expand file tree Collapse file tree 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)
3939 unset (LIBS_ONLY_BUILD_SH CACHE )
4040 set (CC_LIBS_ONLY_BUILD 1)
4141 endif ()
42+
43+ if (CLANG_SANITIZE_SH)
44+ set (CLANG_SANITIZE ${CLANG_SANITIZE_SH} )
45+ unset (CLANG_SANITIZE_SH CACHE )
46+ endif ()
47+
4248endif (NOT CHAKRACORE_BUILD_SH)
4349
4450if (CC_USES_SYSTEM_ARCH_SH OR NOT CHAKRACORE_BUILD_SH)
@@ -573,12 +579,11 @@ endif()
573579include_directories (SYSTEM /usr/local/include )
574580include (pal/src/configure.cmake)
575581
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 )
579585 set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fsanitize=${CLANG_SANITIZE_SH} " )
580586 set (CMAKE_CXX_LINK_FLAGS "${CMAKE_CXX_LINK_FLAGS} -fsanitize=${CLANG_SANITIZE_SH} " )
581- unset (CLANG_SANITIZE_SH CACHE ) # don't cache
582587endif ()
583588
584589add_subdirectory (pal)
You can’t perform that action at this time.
0 commit comments