mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-11-25 06:40:18 +00:00
[Sanitizer] Add 'dispatch' feature to be used in compiler-rt tests
Reviewed By: dvyukov Differential Revision: https://reviews.llvm.org/D59037 llvm-svn: 355617
This commit is contained in:
parent
92dd321a14
commit
98a00defe1
@ -186,6 +186,7 @@ option(COMPILER_RT_INTERCEPT_LIBDISPATCH
|
||||
if (APPLE) # Always enable on Apple platforms.
|
||||
set(COMPILER_RT_INTERCEPT_LIBDISPATCH ON)
|
||||
endif()
|
||||
pythonize_bool(COMPILER_RT_INTERCEPT_LIBDISPATCH)
|
||||
|
||||
if(APPLE AND SANITIZER_MIN_OSX_VERSION AND SANITIZER_MIN_OSX_VERSION VERSION_LESS "10.9")
|
||||
# Mac OS X prior to 10.9 had problems with exporting symbols from
|
||||
|
@ -222,6 +222,10 @@ compiler_rt_debug = getattr(config, 'compiler_rt_debug', False)
|
||||
if not compiler_rt_debug:
|
||||
config.available_features.add('compiler-rt-optimized')
|
||||
|
||||
dispatch = getattr(config, 'compiler_rt_intercept_libdispatch')
|
||||
if dispatch:
|
||||
config.available_features.add('dispatch')
|
||||
|
||||
sanitizer_can_use_cxxabi = getattr(config, 'sanitizer_can_use_cxxabi', True)
|
||||
if sanitizer_can_use_cxxabi:
|
||||
config.available_features.add('cxxabi')
|
||||
|
@ -24,6 +24,7 @@ set_default("clang", "@COMPILER_RT_RESOLVED_TEST_COMPILER@")
|
||||
set_default("compiler_id", "@COMPILER_RT_TEST_COMPILER_ID@")
|
||||
set_default("python_executable", "@PYTHON_EXECUTABLE@")
|
||||
set_default("compiler_rt_debug", @COMPILER_RT_DEBUG_PYBOOL@)
|
||||
set_default("compiler_rt_intercept_libdispatch", @COMPILER_RT_INTERCEPT_LIBDISPATCH_PYBOOL@)
|
||||
set_default("compiler_rt_libdir", "@COMPILER_RT_RESOLVED_LIBRARY_OUTPUT_DIR@")
|
||||
set_default("emulator", "@COMPILER_RT_EMULATOR@")
|
||||
set_default("asan_shadow_scale", "@COMPILER_RT_ASAN_SHADOW_SCALE@")
|
||||
|
@ -40,6 +40,7 @@ write_cmake_config("lit_common_configured") {
|
||||
"COMPILER_RT_TEST_COMPILER_ID=Clang",
|
||||
"PYTHON_EXECUTABLE=$python_path",
|
||||
"COMPILER_RT_DEBUG_PYBOOL=False",
|
||||
"COMPILER_RT_INTERCEPT_LIBDISPATCH_PYBOOL=False",
|
||||
"COMPILER_RT_RESOLVED_LIBRARY_OUTPUT_DIR=" +
|
||||
rebase_path(crt_current_out_dir),
|
||||
"COMPILER_RT_EMULATOR=",
|
||||
|
Loading…
Reference in New Issue
Block a user