We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d126146 commit a9e7809Copy full SHA for a9e7809
rust/private/rustc.bzl
@@ -965,8 +965,9 @@ def construct_arguments(
965
if linker_script:
966
rustc_flags.add(linker_script, format = "--codegen=link-arg=-T%s")
967
968
- if attr._experimental_toolchain_generated_sysroot[BuildSettingInfo].value == True:
969
- rustc_flags.add("--sysroot", toolchain.sysroot)
+ if hasattr(attr, "_experimental_toolchain_generated_sysroot"):
+ if attr._experimental_toolchain_generated_sysroot[BuildSettingInfo].value == True:
970
+ rustc_flags.add("--sysroot", toolchain.sysroot)
971
972
# Tell Rustc where to find the standard library (or libcore)
973
rustc_flags.add_all(toolchain.rust_std_paths, before_each = "-L", format_each = "%s")
0 commit comments