-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add --incompatible_use_specific_tool_files #7725
Conversation
379450f
to
953fc5d
Compare
bb52419
to
cf44a22
Compare
I'm sorry Benjamin, I thought I assigned @scentini to this PR a while ago. I didn't :) |
In general I like it, thank you for working on it. I'd want to make sure that other attributes are used when they should be (linker_files for linking, ar_files for archiving, as_files for assembly), and if not, have one big incompatible flag for all. @scentini can you take a look please? |
#6928 suggests there's indeed more work to do. |
cf44a22
to
0daee63
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In general this LGTM. Can we have tests covering the new behavior either in
https://github.com/bazelbuild/bazel/blob/db0392174ac1d85e79c54f6ed8b31accc161090f/src/test/java/com/google/devtools/build/lib/rules/cpp/CcToolchainTest.java
or
https://github.com/bazelbuild/bazel/blob/db0392174ac1d85e79c54f6ed8b31accc161090f/src/test/java/com/google/devtools/build/lib/rules/cpp/CcToolchainProviderTest.java ?
src/main/java/com/google/devtools/build/lib/bazel/rules/cpp/BazelCppSemantics.java
Outdated
Show resolved
Hide resolved
0daee63
to
210739f
Compare
210739f
to
1eef351
Compare
This option makes 1. C++ compilation actions include only the toolchain's compiler_files artifacts as inputs not all_files. 2. Non-preprocessed assembler actions include only the toolchain's as_files artifacts as inputs not all_files. 3. Archiver link actions include the toolchain's ar_files artifacts as inputs rather than linker_files. See bazelbuild#6927 and bazelbuild#6928.
1eef351
to
2619f37
Compare
Any further comments? It'd be nice to make 0.27. |
I created #8531 to track this incompatible change, as per https://www.bazel.build/breaking-changes-guide.html. |
This option makes 1. C++ compilation actions include only the toolchain's compiler_files artifacts as inputs not all_files. 2. Non-preprocessed assembler actions include only the toolchain's as_files artifacts as inputs not all_files. 3. Archiver link actions include the toolchain's ar_files artifacts as inputs rather than linker_files. See bazelbuild#8531. Closes bazelbuild#7725. PiperOrigin-RevId: 250880419
This option makes 1. C++ compilation actions include only the toolchain's compiler_files artifacts as inputs not all_files. 2. Non-preprocessed assembler actions include only the toolchain's as_files artifacts as inputs not all_files. 3. Archiver link actions include the toolchain's ar_files artifacts as inputs rather than linker_files. See bazelbuild#8531. Closes bazelbuild#7725. PiperOrigin-RevId: 250880419
This option makes
See #6927 and #6928.