@@ -788,8 +788,7 @@ def construct_arguments(
788
788
use_json_output = False ,
789
789
build_metadata = False ,
790
790
force_depend_on_objects = False ,
791
- skip_expanding_rustc_env = False ,
792
- sandboxed = True ):
791
+ skip_expanding_rustc_env = False ):
793
792
"""Builds an Args object containing common rustc flags
794
793
795
794
Args:
@@ -820,7 +819,6 @@ def construct_arguments(
820
819
build_metadata (bool): Generate CLI arguments for building *only* .rmeta files. This requires use_json_output.
821
820
force_depend_on_objects (bool): Force using `.rlib` object files instead of metadata (`.rmeta`) files even if they are available.
822
821
skip_expanding_rustc_env (bool): Whether to skip expanding CrateInfo.rustc_env_attr
823
- sandboxed (bool): Whether the action using the constructed arguments is sandboxed
824
822
825
823
Returns:
826
824
tuple: A tuple of the following items
@@ -967,12 +965,9 @@ def construct_arguments(
967
965
if linker_script :
968
966
rustc_flags .add (linker_script , format = "--codegen=link-arg=-T%s" )
969
967
970
- if sandboxed :
971
- if hasattr (ctx .attr , "_experimental_toolchain_generated_sysroot" ):
972
- if ctx .attr ._experimental_toolchain_generated_sysroot [BuildSettingInfo ].value == True :
973
- rustc_flags .add ("--sysroot" , toolchain .sysroot )
974
- else :
975
- rustc_flags .add (toolchain .sysroot_short_path , format = "--sysroot=${{pwd}}/%s" )
968
+ if hasattr (ctx .attr , "_experimental_toolchain_generated_sysroot" ):
969
+ if ctx .attr ._experimental_toolchain_generated_sysroot [BuildSettingInfo ].value == True :
970
+ rustc_flags .add ("--sysroot" , toolchain .sysroot )
976
971
977
972
# Tell Rustc where to find the standard library (or libcore)
978
973
rustc_flags .add_all (toolchain .rust_std_paths , before_each = "-L" , format_each = "%s" )
0 commit comments