File tree 2 files changed +4
-3
lines changed
2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ bzl_library(
11
11
"@build_bazel_rules_nodejs//internal/providers:bzl" ,
12
12
],
13
13
deps = [
14
+ "@bazel_skylib//lib:paths" ,
14
15
"@rules_proto//proto:rules" ,
15
16
],
16
17
)
Original file line number Diff line number Diff line change 13
13
# limitations under the License.
14
14
15
15
# buildifier: disable=module-docstring
16
+ load ("@bazel_skylib//lib:paths.bzl" , "paths" )
16
17
load (
17
18
"@bazel_tools//tools/build_defs/cc:action_names.bzl" ,
18
19
"CPP_LINK_EXECUTABLE_ACTION_NAME" ,
@@ -487,9 +488,8 @@ def construct_arguments(
487
488
data_paths ,
488
489
))
489
490
490
- # This empty value satisfies Clippy, which otherwise complains about the
491
- # sysroot being undefined.
492
- env ["SYSROOT" ] = ""
491
+ # Set the SYSROOT to the directory of the rust_lib files passed to the toolchain
492
+ env ["SYSROOT" ] = paths .dirname (toolchain .rust_lib .files .to_list ()[0 ].short_path )
493
493
494
494
return args , env
495
495
You can’t perform that action at this time.
0 commit comments