Skip to content

Commit

Permalink
[Swift] Add -debug-prefix-map to map source file (#37)
Browse files Browse the repository at this point in the history
  • Loading branch information
qyang-nj authored Sep 30, 2021
1 parent 7d20e50 commit 2256a69
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/com/facebook/buck/swift/SwiftCompile.java
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,9 @@ private SwiftCompileStep makeCompileStep(SourcePathResolverAdapter resolver) {
"-emit-objc-header-path",
headerPath.toString(),
"-o",
objectFilePath.toString());
objectFilePath.toString(),
"-debug-prefix-map",
String.format("%s=.", getProjectFilesystem().getRootPath()));

if (shouldEmitSwiftdocs) {
compilerCommand.add("-emit-module-doc", "-emit-module-doc-path", swiftdocPath.toString());
Expand Down

0 comments on commit 2256a69

Please sign in to comment.