|
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/ |
| 8 | + |
| 9 | +# abc is driven programmatically by OpenROAD, so skip the interactive |
| 10 | +# readline dependency exposed by abc@0.64-yosyshq.bcr.2. |
| 11 | +common --@abc//:use_readline=false |
2 | 12 | build --workspace_status_command=tools/workspace_status.sh |
3 | 13 |
|
4 | 14 | # Release builds embed real git version info; dev builds use cache-safe placeholders. |
@@ -43,6 +53,11 @@ build --copt "-Wextra" --host_copt "-Wextra" |
43 | 53 | # ... and disable the warnings we're not interested in. |
44 | 54 | build --copt "-Wno-sign-compare" --host_copt "-Wno-sign-compare" |
45 | 55 | build --copt "-Wno-unused-parameter" --host_copt "-Wno-unused-parameter" |
| 56 | +# False positive under Bazel's parse_headers feature: it compiles each |
| 57 | +# declared header as a main TU, which makes clang treat #pragma once as |
| 58 | +# a no-op and emit -Wpragma-once-outside-header. Project convention is |
| 59 | +# #pragma once for all headers, so silence the warning project-wide. |
| 60 | +build --copt "-Wno-pragma-once-outside-header" --host_copt "-Wno-pragma-once-outside-header" |
46 | 61 | build --copt "-Wno-gcc-compat" --host_copt "-Wno-gcc-compat" |
47 | 62 | build --copt "-Wno-nullability-extension" --host_copt "-Wno-nullability-extension" |
48 | 63 | build --copt "-Wno-deprecated-declarations" --host_copt "-Wno-deprecated-declarations" |
@@ -120,11 +135,21 @@ build:ci --disk_cache= |
120 | 135 | build:ci --config=opt |
121 | 136 |
|
122 | 137 | # Setup remote cache |
| 138 | +# Anon: HTTPS read-only cache |
123 | 139 | build --remote_cache=https://bazel.precisioninno.com |
124 | 140 | build --remote_cache_compression=true |
125 | 141 | build --remote_upload_local_results=false |
| 142 | +# CI: gRPC + Remote Asset API, requires --remote_header |
| 143 | +build:ci --remote_cache=grpcs://bazel.precisioninno.com:443 |
| 144 | +build:ci --experimental_remote_downloader=grpcs://bazel.precisioninno.com:443 |
126 | 145 |
|
127 | 146 | # Without this, bazelisk build ... builds the bazel-orfs tests |
128 | 147 | build --build_tag_filters=-orfs |
129 | 148 |
|
| 149 | +# clang-tidy via aspect_rules_lint, using clang-tidy from the LLVM toolchain. |
| 150 | +# Usage: bazel build --config=lint //src/utl/... |
| 151 | +build:lint --aspects=//tools/lint:linters.bzl%clang_tidy |
| 152 | +build:lint --output_groups=rules_lint_report |
| 153 | +build:lint --remote_download_outputs=all |
| 154 | + |
130 | 155 | try-import %workspace%/user.bazelrc |
0 commit comments