fix(build): try to get the env right

This commit is contained in:
Nils Andreas Svee committed 2025-05-09 02:48:22 +07:00
1 parent b9749981d0
commit 97a4bfeaba
1 file changed
+2 -4
Vendored
+2 -4
View File
@@ -3,7 +3,7 @@ def getArch(target) {
}
def getGCCTarget(rust_target) {
targetMapping = [
def targetMapping = [
"aarch64-unknown-linux-musl": "aarch64-linux-musl",
"arm-unknown-linux-musleabi": "arm-linux-musleabi",
"armv7-unknown-linux-musleabi": "armv7m-linux-musleabi",
@@ -48,15 +48,13 @@ pipeline {
stages {
stage('Build') {
steps {
withEnv(["${LINKER_ENV_KEY}=${CC}", "RUSTFLAGS=-C target-feature=+crt-static"]) {
sh """
sh """
printenv
cargo +nightly build \
-Z build-std=std,panic_abort \
-Z build-std-features="optimize_for_size" \
--target ${TARGET} --release
"""
}
}
}