Skip to content

Recognize ObjcCompile as a compile action in the Bazel extractor - #22

Open
svelezsaffon wants to merge 1 commit into
EngFlow:mainfrom
svelezsaffon:add_mnemonic_cpp_compile
Open

svelezsaffon wants to merge 1 commit into
EngFlow:mainfrom
svelezsaffon:add_mnemonic_cpp_compile

Conversation

@svelezsaffon

Copy link
Copy Markdown

Why:

extract_bazel.py decides which bazel aquery actions count as "a compile" with a set defined in _COMPILE, ObjcCompile wasn't in that set, extract_bazel.py silently dropped every Objective-C compile action when building model.bazel.json. On CMake's side, the File API reports .m

The result:

The differ saw sources that CMake compiled and Bazel appeared not to, and reported them as missing_tu errors. The files were compiling fine (bazel build succeeds); the extractor just couldn't see the actions.

Verification:

  • Full test suite passes (127 tests, up from 126).
  • Re-ran against raylib migration (//:glfw, //:glfw_cocoa, //:raylib): regenerating aquery.json with ObjcCompile added to the mnemonic filter and re-running the extractor/differ eliminates all 5 missing_tu false positives. The 5 .m files now correctly participate in the diff

Why:

  extract_bazel.py decides which bazel aquery actions count as "a compile" with a set _COMPILE,  ObjcCompile wasn't in that set, extract_bazel.py silently dropped every Objective-C compile action when building model.bazel.json. On CMake's side, the File API reports .m

  The result: the differ saw sources that CMake compiled and Bazel appeared not to, and reported them as missing_tu errors a false signal. The files were compiling fine (bazel build
  succeeds); the extractor just couldn't see the actions.

Verification:

  - Full test suite passes (127 tests, up from 126).
  - Re-ran against a real captured raylib migration (//:glfw, //:glfw_cocoa, //:raylib): regenerating aquery.json with ObjcCompile added to the mnemonic filter and re-running the
  extractor/differ eliminates all 5 missing_tu false positives. The 5 .m files now correctly participate in the diff
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant