Skip to content

Commit

Permalink
cc_configure: always add -B/usr/bin to the list of gcc option
Browse files Browse the repository at this point in the history
Fixes bazelbuild#760.

--
MOS_MIGRATED_REVID=120217217
  • Loading branch information
damienmg committed Apr 19, 2016
1 parent 83fce40 commit a20352e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tools/cpp/cc_configure.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit a20352e

Please sign in to comment.