mirror of
https://github.com/ivabus/pantry
synced 2024-11-29 19:55:06 +03:00
fix(rust)
This commit is contained in:
parent
a26eec476d
commit
b38bd2211e
1 changed files with 11 additions and 2 deletions
|
@ -41,12 +41,20 @@ build:
|
||||||
python.org: 3
|
python.org: 3
|
||||||
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
|
||||||
script: |-
|
script: |-
|
||||||
# --enable-optimize not available as of 1.63.0
|
# --enable-optimize not available as of 1.63.0
|
||||||
if test {{version.major}} -eq 1 -a {{version.minor}} -lt 63; then
|
if semverator satisfies '<1.63' {{ version }}; then
|
||||||
export ARGS="$ARGS --enable-optimize"
|
export ARGS="$ARGS --enable-optimize"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# 1.68.0 introduced a regression w.r.t. CI builds
|
||||||
|
# https://github.com/rust-lang/rust/issues/108959
|
||||||
|
if semverator satisfies ^1.68 {{ version }}; then
|
||||||
|
sed -i.bak -e 's/if CiEnv::is_ci() {/if CiEnv::is_ci() \&\& config.rust_info.is_managed_git_subrepository() {/' src/bootstrap/native.rs
|
||||||
|
rm src/bootstrap/native.rs.bak
|
||||||
|
fi
|
||||||
|
|
||||||
./configure $ARGS
|
./configure $ARGS
|
||||||
make install
|
make install
|
||||||
|
|
||||||
|
@ -69,7 +77,8 @@ build:
|
||||||
|
|
||||||
test:
|
test:
|
||||||
script: |
|
script: |
|
||||||
rustc $FIXTURE -o hello
|
mv $FIXTURE hello.rs
|
||||||
|
rustc hello.rs
|
||||||
./hello
|
./hello
|
||||||
fixture: |
|
fixture: |
|
||||||
fn main() {
|
fn main() {
|
||||||
|
|
Loading…
Reference in a new issue