Skip to content

Commit dfe38b2

Browse files
author
Vinh Tran
committed
Set --sysroot
1 parent 1557205 commit dfe38b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rust/private/rustc.bzl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1039,7 +1039,7 @@ def construct_arguments(
10391039
))
10401040

10411041
# Ensure the sysroot is set for the target platform
1042-
env["SYSROOT"] = toolchain.sysroot
1042+
rustc_flags.add("--sysroot=" + toolchain.sysroot)
10431043

10441044
if toolchain._rename_first_party_crates:
10451045
env["RULES_RUST_THIRD_PARTY_DIR"] = toolchain._third_party_dir

0 commit comments

Comments
 (0)