-
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.
Add compiler-specific warnings in Bazel.
- Loading branch information
1 parent
0405c05
commit e9516b7
Showing
9 changed files
with
186 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/bin/bash | ||
|
||
if grep clang "$1"; then | ||
|
||
else | ||
|
||
fi |
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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# -*- python -*- | ||
# This is a Bazel repository_rule for auto-configuring the C++ toolchain. | ||
# https://www.bazel.io/versions/master/docs/skylark/repository_rules.html | ||
# It tweaks the default auto-configuration to add extra compiler flags. | ||
# https://github.com/bazelbuild/bazel/blob/master/tools/cpp/cc_configure.bzl | ||
|
||
def _drake_toolchain_impl(repository_ctx): | ||
print("in _drake_toolchain_impl") | ||
repository_ctx.file("scratch", content="foo") | ||
repository_ctx.symlink(Label("@local_config_cc//:BUILD"), "BUILD") | ||
repository_ctx.symlink(Label("@local_config_cc//:CROSSTOOL"), "CROSSTOOL.generic") | ||
repository_ctx.symlink(Label("//tools:amend_crosstool"), "amend_crosstool.sh") | ||
repository_ctx.execute(["bash", "amend_crosstool.sh", "CROSSTOOL.generic"]) | ||
|
||
drake_toolchain_autoconf = repository_rule( | ||
local = True, | ||
implementation = _drake_toolchain_impl, | ||
) | ||
|
||
def drake_toolchain(): | ||
drake_toolchain_autoconf(name="local_config_drake") | ||
native.bind(name="drake_toolchain", actual="@local_config_drake//:toolchain") |