Keep PIC wrappers target specific.
Some checks failed
Tagged release / prepare-release (push) Successful in 3m1s
Tagged release / build-linux-x64 (push) Failing after 29m31s
Tagged release / build-macos (push) Has been skipped
Tagged release / build-linux-arm64 (push) Has been skipped
Tagged release / build-windows (push) Has been skipped
Tagged release / publish-release (push) Has been skipped

This commit is contained in:
Hermes Agent
2026-08-14 19:57:43 +00:00
parent 35eec1d000
commit 21c6daea9b
2 changed files with 2 additions and 2 deletions

View File

@@ -166,9 +166,7 @@ jobs:
run: |
set -eu
target=x86_64-unknown-linux-gnu
export CC="$PWD/.gitea/scripts/x86_64-linux-gnu-gcc-pic"
export CC_x86_64_unknown_linux_gnu="$PWD/.gitea/scripts/x86_64-linux-gnu-gcc-pic"
export CXX="$PWD/.gitea/scripts/x86_64-linux-gnu-g++-pic"
export CXX_x86_64_unknown_linux_gnu="$PWD/.gitea/scripts/x86_64-linux-gnu-g++-pic"
unset ZSTD_SYS_USE_PKG_CONFIG
cargo +${RUST_TOOLCHAIN} build --release --locked --target "$target" \

View File

@@ -240,6 +240,8 @@ fn tagged_releases_are_built_and_packaged_with_rust_tools() {
workflow.contains("link-arg=--sysroot=/opt/ruds-x64-sysroot"),
"the cross-linker must resolve absolute libc linker-script paths inside the x64 sysroot"
);
assert!(!workflow.contains("export CC=\""));
assert!(!workflow.contains("export CXX=\""));
let workspace_manifest = fs::read_to_string(workspace.join("Cargo.toml")).unwrap();
let core_manifest = fs::read_to_string(workspace.join("crates/bds-core/Cargo.toml")).unwrap();