diff options
author | Alexander Richardson <alexrichardson@google.com> | 2024-12-02 11:49:52 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-12-02 11:49:52 -0800 |
commit | 75452831948d86674374f645df75c543f4587635 (patch) | |
tree | 6c18adfb3e1a7e8d15654cd5e724b0c2f3dfb96d /llvm/lib/Transforms/Utils/LoopUnrollRuntime.cpp | |
parent | 468fb5fc7ebc42820cf8a2114d20f321a9ede0ee (diff) | |
download | llvm-75452831948d86674374f645df75c543f4587635.zip llvm-75452831948d86674374f645df75c543f4587635.tar.gz llvm-75452831948d86674374f645df75c543f4587635.tar.bz2 |
[compiler-rt] Don't detect a versioned clang test compiler as GCC
I was trying to build compiler-rt with /usr/bin/clang-17 and the testsuite
failed due to the code in lit.common.cfg.py:
```
# GCC-ASan uses dynamic runtime by default (since config.bits is not set).
if config.compiler_id == "GNU":
gcc_dir = os.path.dirname(config.clang)
libasan_dir = os.path.join(gcc_dir, "..", "lib" + config.bits)
push_dynamic_library_lookup_path(config, libasan_dir)
```
Fix this in two ways: First, if the test compiler matches the library
compiler, set COMPILER_RT_TEST_COMPILER_ID to CMAKE_C_COMPILER_ID. Second,
relax the regex detecting clang to allow any kind of suffix.
Reviewed By: compnerd
Pull Request: https://github.com/llvm/llvm-project/pull/117812
Diffstat (limited to 'llvm/lib/Transforms/Utils/LoopUnrollRuntime.cpp')
0 files changed, 0 insertions, 0 deletions