|
1 | 1 | common --enable_bzlmod |
| 2 | +# sv-lang 10.0.bcr.2 (slang at f04e8156 with the foreign_cc cmake -xc++ |
| 3 | +# fix) is pending upstream as a PR against bazelbuild/bazel-central- |
| 4 | +# registry: https://github.com/bazelbuild/bazel-central-registry/pull/8987 |
| 5 | +# Remove this registry line once the version lands on BCR. |
| 6 | +common --registry=https://raw.githubusercontent.com/oharboe/bazel-central-registry/1beaf797951046d93a2f656d4238c954a21833e5/ |
| 7 | +common --registry=https://bcr.bazel.build/ |
2 | 8 | build --workspace_status_command=tools/workspace_status.sh |
3 | 9 |
|
4 | 10 | # Release builds embed real git version info; dev builds use cache-safe placeholders. |
@@ -43,6 +49,11 @@ build --copt "-Wextra" --host_copt "-Wextra" |
43 | 49 | # ... and disable the warnings we're not interested in. |
44 | 50 | build --copt "-Wno-sign-compare" --host_copt "-Wno-sign-compare" |
45 | 51 | build --copt "-Wno-unused-parameter" --host_copt "-Wno-unused-parameter" |
| 52 | +# False positive under Bazel's parse_headers feature: it compiles each |
| 53 | +# declared header as a main TU, which makes clang treat #pragma once as |
| 54 | +# a no-op and emit -Wpragma-once-outside-header. Project convention is |
| 55 | +# #pragma once for all headers, so silence the warning project-wide. |
| 56 | +build --copt "-Wno-pragma-once-outside-header" --host_copt "-Wno-pragma-once-outside-header" |
46 | 57 | build --copt "-Wno-gcc-compat" --host_copt "-Wno-gcc-compat" |
47 | 58 | build --copt "-Wno-nullability-extension" --host_copt "-Wno-nullability-extension" |
48 | 59 | build --copt "-Wno-deprecated-declarations" --host_copt "-Wno-deprecated-declarations" |
@@ -120,11 +131,21 @@ build:ci --disk_cache= |
120 | 131 | build:ci --config=opt |
121 | 132 |
|
122 | 133 | # Setup remote cache |
| 134 | +# Anon: HTTPS read-only cache |
123 | 135 | build --remote_cache=https://bazel.precisioninno.com |
124 | 136 | build --remote_cache_compression=true |
125 | 137 | build --remote_upload_local_results=false |
| 138 | +# CI: gRPC + Remote Asset API, requires --remote_header |
| 139 | +build:ci --remote_cache=grpcs://bazel.precisioninno.com:443 |
| 140 | +build:ci --experimental_remote_downloader=grpcs://bazel.precisioninno.com:443 |
126 | 141 |
|
127 | 142 | # Without this, bazelisk build ... builds the bazel-orfs tests |
128 | 143 | build --build_tag_filters=-orfs |
129 | 144 |
|
| 145 | +# clang-tidy via aspect_rules_lint, using clang-tidy from the LLVM toolchain. |
| 146 | +# Usage: bazel build --config=lint //src/utl/... |
| 147 | +build:lint --aspects=//tools/lint:linters.bzl%clang_tidy |
| 148 | +build:lint --output_groups=rules_lint_report |
| 149 | +build:lint --remote_download_outputs=all |
| 150 | + |
130 | 151 | try-import %workspace%/user.bazelrc |
0 commit comments