libcxx: don't conflict with installed

This commit is contained in:
Jacob Heider 2024-06-04 19:28:48 -04:00
parent 7897bbe992
commit 72102b7885
No known key found for this signature in database
GPG key ID: 51E3FD0EE62677B6

View file

@ -6,11 +6,6 @@ versions:
github: llvm/llvm-project github: llvm/llvm-project
strip: /^llvmorg-/ strip: /^llvmorg-/
runtime:
env:
linux:
CPATH: $CPATH:{{prefix}}/include/c++/v1
build: build:
dependencies: dependencies:
cmake.org: '>=3<3.29' cmake.org: '>=3<3.29'
@ -46,6 +41,12 @@ test:
dependencies: dependencies:
llvm.org: '*' llvm.org: '*'
script: script:
# installed libc++ causes header conflict
- run: |
if ! ldconfig -p | grep -q libc++.so; then
ARGS="$ARGS -cxx-isystem {{prefix}}/include/c++/v1"
fi
if: linux
- run: clang++ $ARGS $FIXTURE - run: clang++ $ARGS $FIXTURE
fixture: fixture:
extname: cpp extname: cpp