mirror of
https://src.fedoraproject.org/rpms/llvm.git
synced 2024-11-24 09:32:42 +00:00
tests: use adjust
to handle libcxx requirement in Fedora and RHEL
This commit is contained in:
parent
1bdf054407
commit
9e0411bb7b
2 changed files with 11 additions and 6 deletions
|
@ -1,8 +1,6 @@
|
|||
summary: Run the upstream LLVM integration test suite
|
||||
description: |
|
||||
Run the upstream LLVM integration test suite
|
||||
|
||||
NOTE: don't forget to disable libcxx tests when libcxx is not available, by adding -DENABLE_LIBCXX=OFF.
|
||||
test: ./test.sh
|
||||
require:
|
||||
- cmake
|
||||
|
@ -20,6 +18,13 @@ require:
|
|||
- libstdc++-static
|
||||
- clang-devel
|
||||
- python3-lit
|
||||
|
||||
# Required in Fedora, but not shipped with RHEL. For future reference, comment the libcxx out as needed.
|
||||
- libcxx-devel
|
||||
adjust:
|
||||
# libcxx shall be required in Fedora, it's not shipped with RHEL.
|
||||
- require+:
|
||||
- libcxx-devel
|
||||
when: "distro == fedora"
|
||||
because: testing against libcxx package in Fedora
|
||||
- environment+:
|
||||
CMAKE_CXXLIB: "-DENABLE_LIBCXX=OFF"
|
||||
when: "distro == rhel"
|
||||
because: libcxx is not shipped with RHEL
|
||||
|
|
|
@ -33,5 +33,5 @@ cd $(mktemp -d -p /var/tmp)
|
|||
git clone $repo_url
|
||||
cd llvm-toolchain-integration-test-suite
|
||||
mkdir _build && cd _build
|
||||
cmake .. -GNinja
|
||||
cmake .. -GNinja "${CMAKE_CXXLIB:-}"
|
||||
ninja $thread_args check
|
||||
|
|
Loading…
Reference in a new issue