0
0
Fork 0
mirror of https://github.com/denoland/rusty_v8.git synced 2024-11-21 15:04:33 -05:00

set cargo linker

This commit is contained in:
Ronny Chan 2024-10-24 13:08:06 -04:00
parent 54a958ba21
commit b047294c87
No known key found for this signature in database
GPG key ID: 438610BEA8DC2E2C

View file

@ -265,6 +265,14 @@ fn build_v8(is_asan: bool) {
target.replace("-unknown-", "-")
),
);
env::set_var(
format!("CARGO_TARGET_{}_LINKER", target.replace('-', "_")),
format!(
"{}/bin/{}-gcc",
toolchain.display(),
target.replace("-unknown-", "-")
),
);
}
if let Some(p) = env::var_os("SCCACHE") {