File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -164,7 +164,6 @@ SerializationOptions CompilerInvocation::computeSerializationOptions(
164
164
}
165
165
SmallString<256 > OutputDir (serializationOpts.SymbolGraphOutputDir );
166
166
llvm::sys::fs::make_absolute (OutputDir);
167
- llvm::sys::path::remove_filename (OutputDir);
168
167
serializationOpts.SymbolGraphOutputDir = OutputDir.str ().str ();
169
168
}
170
169
Original file line number Diff line number Diff line change 2
2
// RUN: %target-build-swift %s -module-name EmitWhileBuilding -emit-module -emit-module-path %t/ -emit-symbol-graph -emit-symbol-graph-dir %t/
3
3
// RUN: %FileCheck %s --input-file %t/EmitWhileBuilding.symbols.json
4
4
5
+ // also try without the trailing slash on `-emit-symbol-graph-dir` and make sure it works
6
+
7
+ // RUN: %empty-directory(%t)
8
+ // RUN: %target-build-swift %s -module-name EmitWhileBuilding -emit-module -emit-module-path %t/ -emit-symbol-graph -emit-symbol-graph-dir %t
9
+ // RUN: %FileCheck %s --input-file %t/EmitWhileBuilding.symbols.json
10
+
5
11
/// Does a foo.
6
12
public func foo( ) { }
7
13
You can’t perform that action at this time.
0 commit comments