Skip to content

Commit

Permalink
Hardcode path to dirname on macOS
Browse files Browse the repository at this point in the history
It seems that some repos have customized PATH so this isn't available.
This should fix that.

Closes #10222.

PiperOrigin-RevId: 280180002
  • Loading branch information
keith authored and copybara-github committed Nov 13, 2019
1 parent 7535d4c commit 63332eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/cpp/osx_cc_configure.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def configure_osx_toolchain(repository_ctx, overriden_tools):
# the C++ actions behave consistently.
cc = repository_ctx.path("wrapped_clang")

cc_path = '"$(dirname "$0")"/wrapped_clang'
cc_path = '"$(/usr/bin/dirname "$0")"/wrapped_clang'
repository_ctx.template(
"cc_wrapper.sh",
paths["@bazel_tools//tools/cpp:osx_cc_wrapper.sh.tpl"],
Expand Down

0 comments on commit 63332eb

Please sign in to comment.