mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
When setting up the ModuleInterfaceChecker, prefer using the module cache path from command-line invocation `-module-cache-path` before falling back to clang options. Usually those two yield the same result, except for LLDB under direct cc1 argument mode and explicit module build. Under such mode, the cc1 option for module cache path will be stripped since the output PCMs are explicit passed as output. When LLDB attempted to do an implicit module compilation for the swift interface, it will not be able to locate the module cache path from cc1 arguments. On the other hand, the module cache option has already be inherited by the sub-instance so it can just directly be located there. rdar://137610484
1.7 KiB
1.7 KiB