mirror of
https://github.com/ivabus/pantry
synced 2024-11-22 08:25:07 +03:00
fix(rust)
This commit is contained in:
parent
843a3983c8
commit
a94cbfc456
1 changed files with 17 additions and 14 deletions
|
@ -44,27 +44,30 @@ build:
|
||||||
openssl.org: '*' # needed to build openssl-sys
|
openssl.org: '*' # needed to build openssl-sys
|
||||||
freedesktop.org/pkg-config: ^0.29
|
freedesktop.org/pkg-config: ^0.29
|
||||||
crates.io/semverator: 0
|
crates.io/semverator: 0
|
||||||
script: |-
|
linux:
|
||||||
|
gnu.org/make: '*'
|
||||||
|
script:
|
||||||
# --enable-optimize not available as of 1.63.0
|
# --enable-optimize not available as of 1.63.0
|
||||||
if semverator satisfies '<1.63' {{ version }}; then
|
- run: export ARGS="$ARGS --enable-optimize"
|
||||||
export ARGS="$ARGS --enable-optimize"
|
if: <1.63.0
|
||||||
fi
|
|
||||||
|
|
||||||
# 1.68.0 introduced a regression w.r.t. CI builds
|
# 1.68.0 introduced a regression w.r.t. CI builds
|
||||||
# https://github.com/rust-lang/rust/issues/108959
|
# https://github.com/rust-lang/rust/issues/108959
|
||||||
if semverator satisfies '>=1.68<1.70' {{ version }}; then
|
- run: |
|
||||||
sed -i.bak -e 's/CiEnv::is_ci()/CiEnv::is_ci() \&\& config.rust_info.is_managed_git_subrepository()/' src/bootstrap/native.rs
|
sed -i.bak -e 's/CiEnv::is_ci()/CiEnv::is_ci() \&\& config.rust_info.is_managed_git_subrepository()/' native.rs
|
||||||
rm src/bootstrap/native.rs.bak
|
rm native.rs.bak
|
||||||
fi
|
if: '>=1.68<1.70'
|
||||||
|
working-directory: src/bootstrap
|
||||||
|
|
||||||
./configure $ARGS
|
- ./configure $ARGS
|
||||||
make install
|
- make install
|
||||||
|
|
||||||
for tool in $tools; do
|
- |
|
||||||
./x.py install $tool
|
for tool in $tools; do
|
||||||
done
|
./x.py install $tool
|
||||||
|
done
|
||||||
|
|
||||||
rm -rf {{prefix}}/share/doc
|
- rm -rf {{prefix}}/share/doc
|
||||||
env:
|
env:
|
||||||
ARGS:
|
ARGS:
|
||||||
- --enable-vendor
|
- --enable-vendor
|
||||||
|
|
Loading…
Reference in a new issue