File tree 2 files changed +7
-1
lines changed
2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -959,7 +959,8 @@ def construct_arguments(
959
959
compilation_mode = get_compilation_mode_opts (ctx , toolchain )
960
960
rustc_flags .add (compilation_mode .opt_level , format = "--codegen=opt-level=%s" )
961
961
rustc_flags .add (compilation_mode .debug_info , format = "--codegen=debuginfo=%s" )
962
- rustc_flags .add (compilation_mode .strip_level , format = "--codegen=strip=%s" )
962
+ if toolchain .target_os != "windows" :
963
+ rustc_flags .add (compilation_mode .strip_level , format = "--codegen=strip=%s" )
963
964
964
965
# For determinism to help with build distribution and such
965
966
if remap_path_prefix != None :
Original file line number Diff line number Diff line change @@ -68,6 +68,11 @@ def strip_level_test_suite(name):
68
68
name = "bin" ,
69
69
srcs = [":main.rs" ],
70
70
edition = "2021" ,
71
+ target_compatible_with = [
72
+ "@platforms//os:linux" ,
73
+ "@platforms//os:macos" ,
74
+ "@platforms//os:none" ,
75
+ ],
71
76
)
72
77
73
78
_strip_level_for_dbg_test (
You can’t perform that action at this time.
0 commit comments