Hardcode path to dirname on macOS It seems that some repos have customized PATH so this isn't available. This should fix that. Closes #10222. PiperOrigin-RevId: 280180002
diff --git a/tools/cpp/osx_cc_configure.bzl b/tools/cpp/osx_cc_configure.bzl index 711b311..a6fc3a1 100644 --- a/tools/cpp/osx_cc_configure.bzl +++ b/tools/cpp/osx_cc_configure.bzl
@@ -83,7 +83,7 @@ # 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"],