diff options
author | 2016-04-19 11:47:52 +0000 | |
---|---|---|
committer | 2016-04-19 13:51:20 +0000 | |
commit | a20352eb1dce3fd8df2527ad7227abf5f1bb7891 (patch) | |
tree | cb0c0490cc681c0831a63b1684c371f6cc456e3f /tools | |
parent | 83fce40e69ef35c90e69a57387b1f95b387ad453 (diff) |
cc_configure: always add -B/usr/bin to the list of gcc option
Fixes #760.
--
MOS_MIGRATED_REVID=120217217
Diffstat (limited to 'tools')
-rw-r--r-- | tools/cpp/cc_configure.bzl | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/cpp/cc_configure.bzl b/tools/cpp/cc_configure.bzl index bc4a2e2721..2f09ff640d 100644 --- a/tools/cpp/cc_configure.bzl +++ b/tools/cpp/cc_configure.bzl @@ -173,6 +173,8 @@ def _crosstool_content(repository_ctx, cc, cpu_value, darwin): ] + _add_option_if_supported(repository_ctx, cc, "-no-canonical-prefixes") + ( ["-undefined", "dynamic_lookup"] if darwin else [ "-B" + str(repository_ctx.path(cc).dirname), + # Always have -B/usr/bin, see https://github.com/bazelbuild/bazel/issues/760. + "-B/usr/bin", # Have gcc return the exit code from ld. "-pass-exit-codes", # Stamp the binary with a unique identifier. |