diff options
author | Alex Richardson <alexrichardson@google.com> | 2022-05-09 14:51:02 +0000 |
---|---|---|
committer | Alex Richardson <alexrichardson@google.com> | 2022-05-09 15:04:40 +0000 |
commit | 7c20e7ca8642bafa44f5829a14deea5f9b37f0ef (patch) | |
tree | 5a14e1656becfcbf16d4cf3c12ba1f14d09c9216 /lld/test/lit.cfg.py | |
parent | 01188f996d2e65c9f1d0849cf834acebb32065ea (diff) | |
download | llvm-7c20e7ca8642bafa44f5829a14deea5f9b37f0ef.tar.gz |
[ELF] Support -plugin-opt=stats-file=
This flag is added by clang::driver::tools::addLTOOptions() and was causing
errors for me when building the llvm-test-suite repository with LTO and
-DTEST_SUITE_COLLECT_STATS=ON. This replaces the --stats-file= option
added in 1c04b52b2594d403f739ed919ef420b1e47ae343 since the flag is only
used for LTO and should therefore be in the -plugin-opt= namespace.
Additionally, this commit fixes the `REQUIRES: asserts` that was added in
948d05324a150a5a24e93bad07c9090d5b8bd129: the feature was never defined in
the lld test suite so it effectively disabled the test.
Reviewed By: MaskRay, MTC
Differential Revision: https://reviews.llvm.org/D124105
Diffstat (limited to 'lld/test/lit.cfg.py')
-rw-r--r-- | lld/test/lit.cfg.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lld/test/lit.cfg.py b/lld/test/lit.cfg.py index e0b8a824c4ef..0d5487eabd4d 100644 --- a/lld/test/lit.cfg.py +++ b/lld/test/lit.cfg.py @@ -74,7 +74,8 @@ llvm_config.feature_config( 'RISCV': 'riscv', 'Sparc': 'sparc', 'WebAssembly': 'wasm', - 'X86': 'x86'}) + 'X86': 'x86'}), + ('--assertion-mode', {'ON': 'asserts'}), ]) # Set a fake constant version so that we get consistent output. |