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:
parent
54a958ba21
commit
b047294c87
1 changed files with 8 additions and 0 deletions
8
build.rs
8
build.rs
|
@ -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") {
|
||||
|
|
Loading…
Reference in a new issue