From 97a4bfeaba66221db267434fd5ee6661d5761f69 Mon Sep 17 00:00:00 2001 From: Nils Andreas Svee Date: Fri, 9 May 2025 02:48:22 +0700 Subject: [PATCH] fix(build): try to get the env right --- Jenkinsfile | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 9fdc9ba..d6309e2 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -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 """ - } } }