Should require the issue #15596 tweaks only on the affected versions

This commit is contained in:
Jacob Heider 2022-09-15 16:26:40 -04:00 committed by Jacob Heider
parent 97a351cf43
commit 6915789c83

View file

@ -16,13 +16,15 @@ interprets:
build:
script: |
# https://github.com/denoland/deno/issues/15596
find ext/ffi/tinycc -maxdepth 0 -empty -exec \
git clone https://github.com/TinyCC/tinycc.git {} \;
# https://github.com/denoland/deno/issues/15596 -- reported fixed in 1.25.3
if test {{ version.major }} -eq 1 -a {{ version.minor }} -eq 25 -a {{ version.patch }} -lt 3; then
find ext/ffi/tinycc -maxdepth 0 -empty -exec \
git clone https://github.com/TinyCC/tinycc.git {} \;
if test {{ hw.target }} = x86_64-apple-darwin; then
# our LLVM cannot build with deployment target set to 10.6
sed -i.bak s/MACOSX_DEPLOYMENT_TARGET/\#/ ext/ffi/tinycc/Makefile
if test {{ hw.target }} = x86_64-apple-darwin; then
# our LLVM cannot build with deployment target set to 10.6
sed -i.bak s/MACOSX_DEPLOYMENT_TARGET/\#/ ext/ffi/tinycc/Makefile
fi
fi
cargo build --release