mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[scanner] Adopt new Clang API for build arguments (#68503)
This commit is contained in:
@@ -381,11 +381,11 @@ bool ide::initInvocationByClangArguments(ArrayRef<const char *> ArgList,
|
||||
CCArgs.push_back(Entry);
|
||||
}
|
||||
|
||||
if (!ClangInvok->getLangOpts()->isCompilingModule()) {
|
||||
if (!ClangInvok->getLangOpts().isCompilingModule()) {
|
||||
CCArgs.push_back("-Xclang");
|
||||
llvm::SmallString<64> Str;
|
||||
Str += "-fmodule-name=";
|
||||
Str += ClangInvok->getLangOpts()->CurrentModule;
|
||||
Str += ClangInvok->getLangOpts().CurrentModule;
|
||||
CCArgs.push_back(std::string(Str.str()));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user