Skip to content

Commit

Permalink
Suppress some Mac-specific linker warnings.
Browse files Browse the repository at this point in the history
Contributes to RobotLocomotion#5183.
  • Loading branch information
david-german-tri authored and kunimatsu-tri committed Mar 1, 2017

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 005470c commit 764a40a
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions tools/CROSSTOOL
Original file line number Diff line number Diff line change
@@ -356,6 +356,20 @@ toolchain {
tool_path { name: "cpp" path: "/usr/bin/cpp" }
tool_path { name: "dwp" path: "/usr/bin/dwp" }
tool_path { name: "gcc" path: "third_party/bazel/tools/cpp/osx_cc_wrapper.sh" }

### Additional flags for Drake.
### These must go above the Bazel-derived flags, because some of those flags
### are designed to be concatenated with a predicate, for instance the
### ar_flag "-o".
# This warning is common in Drake, and we don't really care about compact
# exception unwinding, since catching exceptions is forbidden, so we suppress
# it. See https://github.com/RobotLocomotion/drake/issues/5183
linker_flag: "-Wl,-no_compact_unwind"
# The no-symbols warning is common and harmless for header-only libraries,
# so we suppress it. See https://github.com/RobotLocomotion/drake/issues/5183
ar_flag: "-no_warning_for_no_symbols"
### End of additional flags for Drake.

cxx_flag: "-std=c++1y"
ar_flag: "-static"
ar_flag: "-s"

0 comments on commit 764a40a

Please sign in to comment.