mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Pass the debug info settings through to Clang and ensure that compile units
created by Swift and Clang set the CU's compilation dir similarly. rdar://problem/22692266 Swift SVN r32637
This commit is contained in:
@@ -1047,6 +1047,10 @@ static bool ParseIRGenArgs(IRGenOptions &Opts, ArgList &Args,
|
||||
CompilerInvocation::buildDWARFDebugFlags(Opts.DWARFDebugFlags,
|
||||
RenderedArgs, SDKPath,
|
||||
ResourceDir);
|
||||
// TODO: Should we support -fdebug-compilation-dir?
|
||||
llvm::SmallString<256> cwd;
|
||||
llvm::sys::fs::current_path(cwd);
|
||||
Opts.DebugCompilationDir = cwd.str();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user