-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[tools] Modernize Bazel spelling for selecting compiler flags
Deprecate the 'cc' external. Keeping this repository rule intact with bzlmod is certainly possible, but is somewhat of a hassle. Better to use what rules_cc already offers for compiler selection. The command line option --define=DRAKE_WERROR=ON no longer has any effect. (That flag was intended to be internal use only so hopefully nobody will care. It's replacement is now explicitly documented to be internal use only.) Remove some vestigial cc_toolchain diagnostic programs. Also fix some warning Noble GCC spam from FCL, noticed while debugging.
- Loading branch information
1 parent
21c5485
commit 1b8349f
Showing
12 changed files
with
211 additions
and
93 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
# Disable ccache due to incompatibility with Bazel. | ||
build --action_env=CCACHE_DISABLE=1 | ||
|
||
# When compiling with Drake as the main WORKSPACE (i.e., if and only if this | ||
# rcfile is loaded), we enable -Werror by default for Drake's *own* targets, | ||
# but not for our externals. | ||
# When compiling with Drake as the main module (i.e., if and only if this rcfile | ||
# is loaded), we enable -Werror by default for Drake's *own* targets, but not | ||
# for our externals. | ||
# | ||
# Developers may still disable errors locally by passing --copt=-w on the | ||
# command line, or promote *any* warnings even from externals to errors via | ||
# --copt=-Werror. | ||
# | ||
# When compiilng Drake as an external package, this rcfile is not loaded and we | ||
# won't promote warnings to errors by default. | ||
build --define=DRAKE_WERROR=ON | ||
build --@drake//tools/cc_toolchain:error_severity=error |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.