Skip to content

Commit ad871e4

Browse files
committed
[compiler-rt] Disable fuzzer large.test when LLVM_ENABLE_EXPENSIVE_CHECKS=ON
This test is timing out on Green Dragon http://green.lab.llvm.org/green/job/clang-stage1-cmake-RA-expensive/ and looks like it's not executed on other bots with expensive checks enabled http://lab.llvm.org:8011/builders/llvm-clang-x86_64-expensive-checks-ubuntu http://lab.llvm.org:8011/builders/llvm-clang-x86_64-expensive-checks-win The test times out at the C++ source file takes too long to build (2+ hours on my machine), as clang spends a lot of time in IR/MIR verifiers. Differential Revision: https://reviews.llvm.org/D70024
1 parent f586fd4 commit ad871e4

File tree

5 files changed

+9
-0
lines changed

5 files changed

+9
-0
lines changed

compiler-rt/test/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Needed for lit support in standalone builds.
22
include(AddLLVM)
33

4+
pythonize_bool(LLVM_ENABLE_EXPENSIVE_CHECKS)
45
configure_compiler_rt_lit_site_cfg(
56
${CMAKE_CURRENT_SOURCE_DIR}/lit.common.configured.in
67
${CMAKE_CURRENT_BINARY_DIR}/lit.common.configured)

compiler-rt/test/fuzzer/large.test

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
UNSUPPORTED: expensive_checks
2+
13
RUN: %cpp_compiler %S/LargeTest.cpp -o %t-LargeTest
24
RUN: %run %t-LargeTest -runs=10000
35

compiler-rt/test/lit.common.cfg.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -477,6 +477,9 @@ def is_windows_lto_supported():
477477
else:
478478
config.available_features.add("shadow-scale-3")
479479

480+
if config.expensive_checks:
481+
config.available_features.add("expensive_checks")
482+
480483
# Propagate the LLD/LTO into the clang config option, so nothing else is needed.
481484
run_wrapper = []
482485
target_cflags = [getattr(config, 'target_cflags', None)]

compiler-rt/test/lit.common.configured.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ set_default("android_serial", "@ANDROID_SERIAL_FOR_TESTING@")
4242
set_default("android_files_to_push", [])
4343
set_default("have_rpc_xdr_h", @HAVE_RPC_XDR_H@)
4444
set_default("gwp_asan", @COMPILER_RT_HAS_GWP_ASAN_PYBOOL@)
45+
set_default("expensive_checks", @LLVM_ENABLE_EXPENSIVE_CHECKS_PYBOOL@)
4546
config.available_features.add('target-is-%s' % config.target_arch)
4647

4748
if config.enable_per_target_runtime_dir:

llvm/cmake/modules/LLVMConfig.cmake.in

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ set(TARGET_TRIPLE "@TARGET_TRIPLE@")
3535

3636
set(LLVM_ABI_BREAKING_CHECKS @LLVM_ABI_BREAKING_CHECKS@)
3737

38+
set(LLVM_ENABLE_EXPENSIVE_CHECKS @LLVM_ENABLE_EXPENSIVE_CHECKS@)
39+
3840
set(LLVM_ENABLE_ASSERTIONS @LLVM_ENABLE_ASSERTIONS@)
3941

4042
set(LLVM_ENABLE_EH @LLVM_ENABLE_EH@)

0 commit comments

Comments
 (0)