-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Ignore transitive cppmap files from dotd files #21832
Conversation
I'm curious if someone who knows this area better has a better solution in mind for this! |
@lberki curious to hear your thoughts here. an alternative would be to always propagate all cppmap files, but I would think that would be undesirable for other reasons like the command line exploding |
bf8a7eb
to
887ed5d
Compare
@lberki can you take a look or recommend someone else who should review? |
@pzembrod could you take a look? 🙏 |
@pzembrod can you help direct this one? this blocks llvm's upgrade to 7.x |
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.
This seems fine. I will try running some presubmits internally, too.
@bazel-io fork 7.3.0 |
When clang generates dotd files when using `-fmodule-map-file` any `extern module` directives in the modulemap are included in the dotd file if they exist. The result of this was that with sandboxing disabled the dotd file included transitive cppmap files that weren't in its input set, resulting in build failures. This change excludes those instead since they're not required as evidence by the fact that with sandboxing enabled they are not part of the input set. Fixes bazelbuild#21592 Closes bazelbuild#21832. PiperOrigin-RevId: 656382428 Change-Id: I4bc9802884ce1bc66ceda65a602db8dffbd1d9ea
When clang generates dotd files when using `-fmodule-map-file` any `extern module` directives in the modulemap are included in the dotd file if they exist. The result of this was that with sandboxing disabled the dotd file included transitive cppmap files that weren't in its input set, resulting in build failures. This change excludes those instead since they're not required as evidence by the fact that with sandboxing enabled they are not part of the input set. Fixes #21592 Closes #21832. PiperOrigin-RevId: 656382428 Change-Id: I4bc9802884ce1bc66ceda65a602db8dffbd1d9ea Commit ad53147 Co-authored-by: Keith Smiley <[email protected]>
When clang generates dotd files when using
-fmodule-map-file
anyextern module
directives in the modulemap are included in the dotd file if they exist. The result of this was that with sandboxing disabled the dotd file included transitive cppmap files that weren't in its input set, resulting in build failures. This change excludes those instead since they're not required as evidence by the fact that with sandboxing enabled they are not part of the input set.Fixes #21592