Skip to content

Commit

Permalink
Add patch from 'bazelbuild#1114 (comment)'
Browse files Browse the repository at this point in the history
  • Loading branch information
xander-zitara committed Sep 26, 2023
1 parent 4dbb81a commit bc32746
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions rust/private/rustc.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

"""Functionality for constructing actions that invoke the Rust compiler"""

load("@bazel_skylib//lib:paths.bzl", "paths")
load("@bazel_skylib//rules:common_settings.bzl", "BuildSettingInfo")
load(
"@bazel_tools//tools/build_defs/cc:action_names.bzl",
Expand Down Expand Up @@ -447,6 +448,8 @@ def get_linker_and_args(ctx, attr, crate_type, cc_toolchain, feature_configurati
action_name = action_name,
variables = link_variables,
)
link_args = [i for i in link_args]
link_args.append("-B" + paths.dirname(cc_toolchain.ld_executable))
link_env = cc_common.get_environment_variables(
feature_configuration = feature_configuration,
action_name = action_name,
Expand Down

0 comments on commit bc32746

Please sign in to comment.