mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Merge pull request #68847 from rmaz/filecompdirpassthrough
Pass through file-compilation-dir to the ClangImporter.
This commit is contained in:
@@ -1553,6 +1553,13 @@ static bool ParseClangImporterArgs(ClangImporterOptions &Opts, ArgList &Args,
|
||||
Opts.ExtraArgs.push_back("-fdebug-prefix-map=" + Val);
|
||||
}
|
||||
|
||||
if (auto *A = Args.getLastArg(OPT_file_compilation_dir)) {
|
||||
// Forward the -file-compilation-dir flag to correctly set the
|
||||
// debug compilation directory.
|
||||
std::string Val(A->getValue());
|
||||
Opts.ExtraArgs.push_back("-ffile-compilation-dir=" + Val);
|
||||
}
|
||||
|
||||
if (FrontendOpts.CASFSRootIDs.empty() &&
|
||||
FrontendOpts.ClangIncludeTrees.empty()) {
|
||||
if (!workingDirectory.empty()) {
|
||||
|
||||
Reference in New Issue
Block a user