File tree 4 files changed +1
-19
lines changed
4 files changed +1
-19
lines changed Original file line number Diff line number Diff line change @@ -1068,8 +1068,7 @@ def construct_arguments(
1068
1068
))
1069
1069
1070
1070
# Ensure the sysroot is set for the target platform
1071
- if toolchain ._experimental_toolchain_generated_sysroot :
1072
- rustc_flags .add (toolchain .sysroot , format = "--sysroot=%s" )
1071
+ rustc_flags .add (toolchain .sysroot , format = "--sysroot=%s" )
1073
1072
1074
1073
if toolchain ._rename_first_party_crates :
1075
1074
env ["RULES_RUST_THIRD_PARTY_DIR" ] = toolchain ._third_party_dir
Original file line number Diff line number Diff line change @@ -85,13 +85,6 @@ bool_flag(
85
85
build_setting_default = True ,
86
86
)
87
87
88
- # A flag to set rustc --sysroot flag to the sysroot generated by rust_toolchain
89
- incompatible_flag (
90
- name = "experimental_toolchain_generated_sysroot" ,
91
- build_setting_default = True ,
92
- issue = "https://github.com/bazelbuild/rules_rust/issues/2039" ,
93
- )
94
-
95
88
# A flag to control whether to link libstd dynamically.
96
89
bool_flag (
97
90
name = "experimental_link_std_dylib" ,
Original file line number Diff line number Diff line change @@ -697,7 +697,6 @@ def _rust_toolchain_impl(ctx):
697
697
_experimental_use_cc_common_link = _experimental_use_cc_common_link (ctx ),
698
698
_experimental_use_global_allocator = experimental_use_global_allocator ,
699
699
_experimental_use_coverage_metadata_files = ctx .attr ._experimental_use_coverage_metadata_files [BuildSettingInfo ].value ,
700
- _experimental_toolchain_generated_sysroot = ctx .attr ._experimental_toolchain_generated_sysroot [IncompatibleFlagInfo ].enabled ,
701
700
_no_std = no_std ,
702
701
)
703
702
return [
@@ -872,13 +871,6 @@ rust_toolchain = rule(
872
871
"_cc_toolchain" : attr .label (
873
872
default = Label ("@bazel_tools//tools/cpp:current_cc_toolchain" ),
874
873
),
875
- "_experimental_toolchain_generated_sysroot" : attr .label (
876
- default = Label ("//rust/settings:experimental_toolchain_generated_sysroot" ),
877
- doc = (
878
- "Label to a boolean build setting that lets the rule knows wheter to set --sysroot to rustc" +
879
- "This flag is only relevant when used together with --@rules_rust//rust/settings:experimental_toolchain_generated_sysroot."
880
- ),
881
- ),
882
874
"_experimental_use_coverage_metadata_files" : attr .label (
883
875
default = Label ("//rust/settings:experimental_use_coverage_metadata_files" ),
884
876
),
Original file line number Diff line number Diff line change @@ -81,15 +81,13 @@ toolchain_adds_rustc_flags_lib_test = analysistest.make(
81
81
_toolchain_adds_rustc_flags_lib_impl ,
82
82
config_settings = {
83
83
str (Label ("//:extra_rustc_flags" )): [CONFIG_FLAG ],
84
- str (Label ("//rust/settings:experimental_toolchain_generated_sysroot" )): True ,
85
84
},
86
85
)
87
86
88
87
toolchain_adds_rustc_flags_shared_lib_test = analysistest .make (
89
88
_toolchain_adds_rustc_flags_shared_lib_impl ,
90
89
config_settings = {
91
90
str (Label ("//:extra_rustc_flags" )): [CONFIG_FLAG ],
92
- str (Label ("//rust/settings:experimental_toolchain_generated_sysroot" )): True ,
93
91
},
94
92
)
95
93
You can’t perform that action at this time.
0 commit comments