mirror of
https://github.com/ivabus/pantry
synced 2024-11-22 08:25:07 +03:00
parent
5c892d626c
commit
0cfb1f3c73
1 changed files with 27 additions and 12 deletions
|
@ -64,9 +64,11 @@ build:
|
|||
# move linux libs into /lib
|
||||
- run: |
|
||||
TARGET="$(find . -maxdepth 1 -type d -name \*-unknown-linux-gnu)"
|
||||
if test -n "$TARGET"; then
|
||||
mv "$TARGET"/* .
|
||||
rmdir "$TARGET"
|
||||
ln -s . "$TARGET"
|
||||
fi
|
||||
working-directory: ${{prefix}}/lib
|
||||
if: linux
|
||||
|
||||
|
@ -124,16 +126,29 @@ test:
|
|||
crates.io/semverator: '*'
|
||||
script:
|
||||
# Building compiler-rt on darwin+aarch64 fails for versions less than
|
||||
# 14 with the below configuration. FIXME if possible, of course.
|
||||
# 14 with the below configuration, and on darwin generally for 18.1.3.
|
||||
# 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: |
|
||||
if test "{{hw.platform}}" = "linux"; then
|
||||
ARGS="$ARGS -fsanitize=address,undefined"
|
||||
elif semverator satisfies '>=14' {{version}}; then
|
||||
ARGS="$ARGS -fsanitize=address,undefined"
|
||||
elif test "{{hw.arch}}" = "x86-64" && semverator satisfies '>=14' {{version}}; then
|
||||
ARGS="$ARGS -fsanitize=address,undefined"
|
||||
fi
|
||||
# if: linux || >=14 || (x86-64 && >=13) ## Brewkit can't do this. Yet.
|
||||
case "$LINUX,$AARCH64,$GT13,$GT14,$EQ1813" in
|
||||
"1,*,*,*,"|",,1,*,"|",1,1,1,") ARGS="$ARGS -fsanitize=address,undefined";;
|
||||
*) ;;
|
||||
esac
|
||||
# if: linux || >=14<18.1.3 || (x86-64 && >=13<18.1.3) ## Brewkit can't do this. Yet.
|
||||
|
||||
- mv $FIXTURE $FIXTURE.c
|
||||
- clang $ARGS $FIXTURE.c
|
||||
- ./a.out
|
||||
|
|
Loading…
Reference in a new issue