Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -253,9 +253,14 @@ instead of being a warning nobody reads.
> through, or record genuinely-irreducible differences in `any2bazel.json`.
> - Use the **same platform/options** as the CMake configure in step 2, or the
> two sides aren't comparable.
> - **Always** call aquery with `--features=-compiler_param_file` and
> `--features=-linker_param_file` to disable use of param files. Param files
> are never generated during `aquery` calls, so when they're in use they'll
> always point to files that are either stale, or do not exist at all.

```bash
bazel aquery 'mnemonic("CppCompile|ObjcCompile|CppLink|CppArchive", //...)' \
--features=-compiler_param_file --features=-linker_param_file \
[--config=<name>] [--copt=... --cxxopt=...] \
--output=jsonproto > aquery.json
python3 scripts/extract_bazel.py aquery.json <repo_root> model.bazel.json
Expand Down
1 change: 1 addition & 0 deletions scripts/extract_bazel.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@

Usage:
bazel aquery 'mnemonic("CppCompile|ObjcCompile|CppLink|CppArchive", //...)' \
--features=-compiler_param_file --features=-linker_param_file \
--output=jsonproto > aquery.json
python3 extract_bazel.py aquery.json <repo_root> model.bazel.json

Expand Down
Loading