-
Notifications
You must be signed in to change notification settings - Fork 196
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
Test targets built with Explicitly Built Modules feature don't make use of SwiftExplicitPrecompiledModules #1790
Comments
@chiragramani Can you double-check what I'm seeing? Both in the log file and in when I debug your reproducer locally, I only see Clang modules (.pcm) files being loaded from the explicitly built ones in @Michael137 Would the TypeSystemClang import modules other than Foundation outside of evaluating an @import expression? |
Yes, you're right. I do see a few .pcm files being loaded from the explicitly built ones in SwiftExplicitPrecompiledModules.
I just tested it and confirmed that the new .pcm files are being loaded while respecting the minimum OS versions of the images found in the LLDB dump(and not the target for which explicit modules were built). This suggests that your theory about the LLDB's Clang type system trying to import Clang modules from the SDK could be correct. |
@adrian-prantl @Michael137 Do you have any suggestions on how we can further reduce the generation of extra .pcms in the case mentioned above? |
We tried this out on our end and it looks like the Clang modules produced where dependencies of |
Thanks for looking into this. I believe I’m seeing something similar on my end. Enclosing the trace below for reference: lldb-rpc-server_2025-02-20_114824_fQju.sample.txt.zip Let me know if you need any further details. |
Repro:
po
in an app target, it successfully resolves.pcms
fromSwiftExplicitPrecompiledModules
.po
in a test target, it behaves as if in an Implicitly Built Module environment and does not utilizeSwiftExplicitPrecompiledModules
. (generating new .pcms)FB: https://feedbackassistant.apple.com/feedback/16432924
cc: @artemcm
Repro Project:
CoreA.zip
dump-repro.txt
lldb-types-log.log.zip
The text was updated successfully, but these errors were encountered: