diff --git a/SKILL.md b/SKILL.md index 1b5af20..fa05f5e 100644 --- a/SKILL.md +++ b/SKILL.md @@ -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=] [--copt=... --cxxopt=...] \ --output=jsonproto > aquery.json python3 scripts/extract_bazel.py aquery.json model.bazel.json diff --git a/scripts/extract_bazel.py b/scripts/extract_bazel.py index f87b4f0..0551ab4 100644 --- a/scripts/extract_bazel.py +++ b/scripts/extract_bazel.py @@ -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 model.bazel.json