mirror of
https://github.com/ivabus/pantry
synced 2024-11-22 08:25:07 +03:00
fix(llvm) (#5821)
* fix(llvm) fixes missing sanitizers on 18.1.3 * wip * wip * wip * Unneeded comment
This commit is contained in:
parent
603228e26b
commit
3cc79b8645
1 changed files with 12 additions and 21 deletions
|
@ -27,7 +27,9 @@ dependencies:
|
||||||
|
|
||||||
build:
|
build:
|
||||||
dependencies:
|
dependencies:
|
||||||
cmake.org: 3
|
# doesn't seem to install a bunch of the libs
|
||||||
|
# with cmake 3.29
|
||||||
|
cmake.org: '>=3<3.29'
|
||||||
ninja-build.org: 1
|
ninja-build.org: 1
|
||||||
python.org: '>=3<3.12'
|
python.org: '>=3<3.12'
|
||||||
crates.io/semverator: '*'
|
crates.io/semverator: '*'
|
||||||
|
@ -126,28 +128,17 @@ test:
|
||||||
crates.io/semverator: '*'
|
crates.io/semverator: '*'
|
||||||
script:
|
script:
|
||||||
# Building compiler-rt on darwin+aarch64 fails for versions less than
|
# Building compiler-rt on darwin+aarch64 fails for versions less than
|
||||||
# 14 with the below configuration, and on darwin generally for 18.1.3.
|
# 14 with the below configuration
|
||||||
# FIXME if possible, of course.
|
# FIXME if possible, of course.
|
||||||
- run: LINUX=1
|
|
||||||
if: linux
|
|
||||||
- run: AARCH64=1
|
|
||||||
if: aarch64
|
|
||||||
- run: GT13=1
|
|
||||||
if: '>=13'
|
|
||||||
- run: GT14=1
|
|
||||||
if: '>=14'
|
|
||||||
- run: EQ1813=1
|
|
||||||
if: '=18.1.3'
|
|
||||||
# cases
|
|
||||||
# "1,*,*,*," => linux != 18.1.3
|
|
||||||
# ",,1,*," => darwin+x86-64 >=13 != 18.1.3
|
|
||||||
# ",1,1,1," => darwin+aarch64 >=14 != 18.1.3
|
|
||||||
- run: |
|
- run: |
|
||||||
case "$LINUX,$AARCH64,$GT13,$GT14,$EQ1813" in
|
if test "{{hw.platform}}" = "linux"; then
|
||||||
"1,*,*,*,"|",,1,*,"|",1,1,1,") ARGS="$ARGS -fsanitize=address,undefined";;
|
ARGS="$ARGS -fsanitize=address,undefined"
|
||||||
*) ;;
|
elif test "{{hw.arch}}" = "x86_64" && semverator satisfies '>=13' {{version}}; then
|
||||||
esac
|
ARGS="$ARGS -fsanitize=address,undefined"
|
||||||
# if: linux || >=14<18.1.3 || (x86-64 && >=13<18.1.3) ## Brewkit can't do this. Yet.
|
elif semverator satisfies '>=14' {{version}}; then
|
||||||
|
ARGS="$ARGS -fsanitize=address,undefined"
|
||||||
|
fi
|
||||||
|
# if: linux || >=14 || (x86-64 && >=13) ## Brewkit can't do this. Yet.
|
||||||
|
|
||||||
- mv $FIXTURE $FIXTURE.c
|
- mv $FIXTURE $FIXTURE.c
|
||||||
- clang $ARGS $FIXTURE.c
|
- clang $ARGS $FIXTURE.c
|
||||||
|
|
Loading…
Reference in a new issue