Skip to content

Commit

Permalink
set cargo linker
Browse files Browse the repository at this point in the history
  • Loading branch information
RonnyChan-okta committed Oct 24, 2024
1 parent 54a958b commit b047294
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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") {
Expand Down

0 comments on commit b047294

Please sign in to comment.