mirror of
https://github.com/ivabus/pantry
synced 2024-11-22 08:25:07 +03:00
use clang to test libstdc++
This commit is contained in:
parent
51624d8316
commit
0133389a59
1 changed files with 14 additions and 3 deletions
|
@ -57,6 +57,10 @@ build:
|
||||||
rmdir lib64
|
rmdir lib64
|
||||||
if: linux
|
if: linux
|
||||||
working-directory: ${{prefix}}
|
working-directory: ${{prefix}}
|
||||||
|
|
||||||
|
# these don't always match {{version}}
|
||||||
|
- run: ln -s {{version.major}}.* {{version.major}}
|
||||||
|
working-directory: ${{prefix}}/include/c++
|
||||||
env:
|
env:
|
||||||
# Branch from the Darwin maintainer of GCC, with a few generic fixes and
|
# Branch from the Darwin maintainer of GCC, with a few generic fixes and
|
||||||
# Apple Silicon support, located at https://github.com/iains/gcc-12-branch
|
# Apple Silicon support, located at https://github.com/iains/gcc-12-branch
|
||||||
|
@ -104,10 +108,17 @@ build:
|
||||||
and CXXFLAGS_FOR_TARGET: -Wa,-mmacos-version-min=10.5
|
and CXXFLAGS_FOR_TARGET: -Wa,-mmacos-version-min=10.5
|
||||||
|
|
||||||
test:
|
test:
|
||||||
dependencies:
|
env:
|
||||||
gnu.org/gcc: '*'
|
FLAGS:
|
||||||
|
- -std=c++20
|
||||||
|
- -lstdc++
|
||||||
|
darwin:
|
||||||
|
FLAGS:
|
||||||
|
- -cxx-isystem {{prefix}}/include/c++/{{version.major}}
|
||||||
|
- -cxx-isystem {{prefix}}/include/c++/{{version.major}}/*-apple-darwin*
|
||||||
|
- -stdlib=libstdc++
|
||||||
script:
|
script:
|
||||||
- run: g++ -o test $FIXTURE -std=c++20 -lstdc++
|
- run: clang++ -o test $FIXTURE $FLAGS
|
||||||
fixture:
|
fixture:
|
||||||
extname: cc
|
extname: cc
|
||||||
content: |
|
content: |
|
||||||
|
|
Loading…
Reference in a new issue