[compiler-rt] r355617 - [Sanitizer] Add 'dispatch' feature to be used in compiler-rt tests
Julian Lettner via llvm-commits
llvm-commits at lists.llvm.org
Thu Mar 7 10:15:23 PST 2019
Author: yln
Date: Thu Mar 7 10:15:23 2019
New Revision: 355617
URL: http://llvm.org/viewvc/llvm-project?rev=355617&view=rev
Log:
[Sanitizer] Add 'dispatch' feature to be used in compiler-rt tests
Reviewed By: dvyukov
Differential Revision: https://reviews.llvm.org/D59037
Modified:
compiler-rt/trunk/CMakeLists.txt
compiler-rt/trunk/test/lit.common.cfg
compiler-rt/trunk/test/lit.common.configured.in
Modified: compiler-rt/trunk/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/CMakeLists.txt?rev=355617&r1=355616&r2=355617&view=diff
==============================================================================
--- compiler-rt/trunk/CMakeLists.txt (original)
+++ compiler-rt/trunk/CMakeLists.txt Thu Mar 7 10:15:23 2019
@@ -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
Modified: compiler-rt/trunk/test/lit.common.cfg
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/lit.common.cfg?rev=355617&r1=355616&r2=355617&view=diff
==============================================================================
--- compiler-rt/trunk/test/lit.common.cfg (original)
+++ compiler-rt/trunk/test/lit.common.cfg Thu Mar 7 10:15:23 2019
@@ -222,6 +222,10 @@ compiler_rt_debug = getattr(config, 'com
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')
Modified: compiler-rt/trunk/test/lit.common.configured.in
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/lit.common.configured.in?rev=355617&r1=355616&r2=355617&view=diff
==============================================================================
--- compiler-rt/trunk/test/lit.common.configured.in (original)
+++ compiler-rt/trunk/test/lit.common.configured.in Thu Mar 7 10:15:23 2019
@@ -24,6 +24,7 @@ set_default("clang", "@COMPILER_RT_RESOL
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@")
More information about the llvm-commits
mailing list