We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1162e50 commit 81b0f13Copy full SHA for 81b0f13
lldb/source/Plugins/TypeSystem/Swift/SwiftASTContext.cpp
@@ -1791,7 +1791,11 @@ void SwiftASTContext::AddExtraClangCC1Args(
1791
llvm::SmallVector<const char *> clangArgs;
1792
clangArgs.reserve(source.size());
1793
llvm::for_each(source, [&](const std::string &Arg) {
1794
- clangArgs.push_back(Arg.c_str());
+ // Workaround for the extra driver argument embedded in the swiftmodule by
1795
+ // some swift compiler version. It always starts with `--target=` and it is
1796
+ // not a valid cc1 option.
1797
+ if (!StringRef(Arg).starts_with("--target="))
1798
+ clangArgs.push_back(Arg.c_str());
1799
});
1800
1801
std::string diags;
0 commit comments