jenkinsfile: move rustflags to build stage
This commit is contained in:
1 parent
bc8138c51a
commit
f2b7ff066c
1 file changed
+1
-1
Vendored
+1
-1
@@ -82,7 +82,7 @@ pipeline {
|
|||||||
|
|
||||||
stage('Build') {
|
stage('Build') {
|
||||||
steps {
|
steps {
|
||||||
withEnv(["${LINKER_ENV_KEY}=${CC}"]) {
|
withEnv(["${LINKER_ENV_KEY}=${CC}", "RUSTFLAGS=-C target-feature=+crt-static"]) {
|
||||||
sh "cargo build --release --target ${TARGET}"
|
sh "cargo build --release --target ${TARGET}"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user