Front-end: use separate flag for -swift-module-file instead of EQ

This commit is contained in:
Xi Ge
2020-06-02 13:36:41 -07:00
parent 01c18d01c1
commit 0d74428575
3 changed files with 6 additions and 4 deletions

View File

@@ -1207,7 +1207,8 @@ InterfaceSubContextDelegateImpl::InterfaceSubContextDelegateImpl(
// Adding these argumnets may not be necessary.
// FIXME: remove it?
for (auto EM: searchPathOpts.ExplicitSwiftModules) {
GenericArgs.push_back(ArgSaver.save((llvm::Twine("-swift-module-file=") + EM).str()));
GenericArgs.push_back("-swift-module-file");
GenericArgs.push_back(ArgSaver.save(EM));
}
if (clangImporter) {
// We need to add these extra clang flags because explict module building