forked from google/android-cuttlefish
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use a prebuilt clang/LLVM to make the build hermetic
LLVM version 16.0.4 was chosen for parity with our current developer desktop setup. This can be changed later. Upsides: - Consistent compiler behavior across OS versions, supporting our ubuntu 20.04 and debian 11 users. - We can upgrade on our own schedule to a newer clang and access fancy new features such as c++20 and newer clang-tidy lints. Downsides: - Extra time / bandwidth on a fresh (`bazel clean --expunge`) build. - We move one step further away from being a "regular debian citizen" as we fetch more dependencies outside of debian's own package graph.
- Loading branch information
Showing
5 changed files
with
103 additions
and
13 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
build --copt=-fdiagnostics-color=always | ||
build --repo_env=CC=clang | ||
|
||
build:clang-tidy --aspects @bazel_clang_tidy//clang_tidy:clang_tidy.bzl%clang_tidy_aspect | ||
build:clang-tidy --output_groups=report | ||
build:clang-tidy --@bazel_clang_tidy//:clang_tidy_config=//:clang_tidy_config | ||
build:clang-tidy --@bazel_clang_tidy//:clang_tidy_executable=@llvm_toolchain//:clang-tidy |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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