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
strip: /^llvmorg-/
runtime:
env:
linux:
CPATH: $CPATH:{{prefix}}/include/c++/v1
build:
dependencies:
cmake.org: '>=3<3.29'
@ -46,6 +41,12 @@ test:
dependencies:
llvm.org: '*'
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
fixture:
extname: cpp