Blob Blame History Raw
# TODO REVIEW: better summary
summary: ""
test: "$WITH_SCL ./runtest.sh"
require:
  - glibc-static
  - yum-utils
  # This require EPEL/CRB to be enabled on RHEL
  - libstdc++-static
framework: shell
tier: 1
component:
  - llvm-toolset
  - clang
extra-summary: /tools/clang/toolchains
extra-task: /tools/clang/toolchains
extra-nitrate: TC#0614133

adjust:
  # Common requirements when LLVM is not SCL-ized
  - require+:
      - clang
      - compiler-rt
      - lld
    when: "collection is not defined"

  # Requirements for SCL-ized LLVM
  - require+:
      - llvm-toolset-13.0-clang
      - llvm-toolset-13.0-compiler-rt
      - llvm-toolset-13.0-lld
    when: "collection == llvm-toolset-13.0"
  - require+:
      - llvm-toolset-14.0-clang
      - llvm-toolset-14.0-compiler-rt
      - llvm-toolset-14.0-lld
    when: "collection == llvm-toolset-14.0"
  - require+:
      - llvm-toolset-15.0-clang
      - llvm-toolset-15.0-compiler-rt
      - llvm-toolset-15.0-lld
    when: "collection == llvm-toolset-15.0"

    # lld not supported in s390x or ppc64. If any lld package was added to
    # requirements, remove it.
  - require-:
      - lld
      - llvm-toolset-13.0-lld
      - llvm-toolset-14.0-lld
      - llvm-toolset-15.0-lld
    when: arch == s390x or arch == ppc64

  - environment+:
      CXXLIBS: "libc++"
    require+:
      - libcxx-devel
      - libcxx-static
    when: "distro == fedora"
    because: testing against libcxx package in Fedora

  - environment+:
      CXXLIBS: "libstdc++"
    require+:
      - libstdc++
    when: >-
      distro == rhel
      or distro == centos
    because: testing against libstdc++ package in RHEL as libcxx is not shipped with RHEL

# TODO REVIEW: are these all requirements? test.sh seems to run quite a lot of stuff, looks like we
# need more packages from LLVM family.