fix(build): try to get the env right
This commit is contained in:
1 file changed
+2
-4
Vendored
+2
-4
@@ -3,7 +3,7 @@ def getArch(target) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
def getGCCTarget(rust_target) {
|
def getGCCTarget(rust_target) {
|
||||||
targetMapping = [
|
def targetMapping = [
|
||||||
"aarch64-unknown-linux-musl": "aarch64-linux-musl",
|
"aarch64-unknown-linux-musl": "aarch64-linux-musl",
|
||||||
"arm-unknown-linux-musleabi": "arm-linux-musleabi",
|
"arm-unknown-linux-musleabi": "arm-linux-musleabi",
|
||||||
"armv7-unknown-linux-musleabi": "armv7m-linux-musleabi",
|
"armv7-unknown-linux-musleabi": "armv7m-linux-musleabi",
|
||||||
@@ -48,15 +48,13 @@ pipeline {
|
|||||||
stages {
|
stages {
|
||||||
stage('Build') {
|
stage('Build') {
|
||||||
steps {
|
steps {
|
||||||
withEnv(["${LINKER_ENV_KEY}=${CC}", "RUSTFLAGS=-C target-feature=+crt-static"]) {
|
sh """
|
||||||
sh """
|
|
||||||
printenv
|
printenv
|
||||||
cargo +nightly build \
|
cargo +nightly build \
|
||||||
-Z build-std=std,panic_abort \
|
-Z build-std=std,panic_abort \
|
||||||
-Z build-std-features="optimize_for_size" \
|
-Z build-std-features="optimize_for_size" \
|
||||||
--target ${TARGET} --release
|
--target ${TARGET} --release
|
||||||
"""
|
"""
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user