diff options
Diffstat (limited to 'compiler-rt/lib')
5 files changed, 11 insertions, 0 deletions
diff --git a/compiler-rt/lib/asan/lit_tests/TestCases/Linux/malloc-in-qsort.cc b/compiler-rt/lib/asan/lit_tests/TestCases/Linux/malloc-in-qsort.cc index 73d2bc1e34c..3251b35e143 100644 --- a/compiler-rt/lib/asan/lit_tests/TestCases/Linux/malloc-in-qsort.cc +++ b/compiler-rt/lib/asan/lit_tests/TestCases/Linux/malloc-in-qsort.cc @@ -9,6 +9,8 @@ // Fast unwinder is only avaliable on x86_64 and i386. // REQUIRES: x86_64-supported-target +// REQUIRES: compiler-rt-optimized + #include <stdlib.h> #include <stdio.h> diff --git a/compiler-rt/lib/asan/lit_tests/TestCases/memcmp_test.cc b/compiler-rt/lib/asan/lit_tests/TestCases/memcmp_test.cc index 32067a9eaa1..758311ddc47 100644 --- a/compiler-rt/lib/asan/lit_tests/TestCases/memcmp_test.cc +++ b/compiler-rt/lib/asan/lit_tests/TestCases/memcmp_test.cc @@ -3,6 +3,8 @@ // RUN: %clangxx_asan -O2 %s -o %t && not %t 2>&1 | FileCheck %s // RUN: %clangxx_asan -O3 %s -o %t && not %t 2>&1 | FileCheck %s +// REQUIRES: compiler-rt-optimized + #include <string.h> int main(int argc, char **argv) { char a1[] = {argc, 2, 3, 4}; diff --git a/compiler-rt/lib/asan/lit_tests/TestCases/strncpy-overflow.cc b/compiler-rt/lib/asan/lit_tests/TestCases/strncpy-overflow.cc index 2b5f5b7cdd7..5b89dadd6e5 100644 --- a/compiler-rt/lib/asan/lit_tests/TestCases/strncpy-overflow.cc +++ b/compiler-rt/lib/asan/lit_tests/TestCases/strncpy-overflow.cc @@ -7,6 +7,8 @@ // RUN: %clangxx_asan -O3 %s -o %t && not %t 2>%t.out // RUN: FileCheck %s < %t.out && FileCheck %s --check-prefix=CHECK-%os < %t.out +// REQUIRES: compiler-rt-optimized + #include <string.h> #include <stdlib.h> int main(int argc, char **argv) { diff --git a/compiler-rt/lib/lit.common.cfg b/compiler-rt/lib/lit.common.cfg index 4be6921549b..6c2b4cca454 100644 --- a/compiler-rt/lib/lit.common.cfg +++ b/compiler-rt/lib/lit.common.cfg @@ -56,3 +56,7 @@ compiler_rt_arch = getattr(config, 'compiler_rt_arch', None) if compiler_rt_arch: for arch in compiler_rt_arch.split(";"): config.available_features.add(arch + "-supported-target") + +compiler_rt_debug = getattr(config, 'compiler_rt_debug', False) +if not compiler_rt_debug: + config.available_features.add('compiler-rt-optimized') diff --git a/compiler-rt/lib/lit.common.configured.in b/compiler-rt/lib/lit.common.configured.in index a1d2002e42b..558655cbbee 100644 --- a/compiler-rt/lib/lit.common.configured.in +++ b/compiler-rt/lib/lit.common.configured.in @@ -13,6 +13,7 @@ config.llvm_tools_dir = "@LLVM_TOOLS_DIR@" config.clang = "@LLVM_BINARY_DIR@/bin/clang" config.compiler_rt_arch = "@COMPILER_RT_SUPPORTED_ARCH@" config.python_executable = "@PYTHON_EXECUTABLE@" +config.compiler_rt_debug = @COMPILER_RT_DEBUG_PYBOOL@ # LLVM tools dir can be passed in lit parameters, so try to # apply substitution. |

