File tree Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -597,8 +597,7 @@ SupplementaryOutputPathsComputer::readSupplementaryOutputFileMap() const {
597
597
options::OPT_emit_private_module_interface_path,
598
598
options::OPT_emit_module_source_info_path,
599
599
options::OPT_emit_tbd_path,
600
- options::OPT_emit_ldadd_cfile_path,
601
- options::OPT_emit_symbol_graph_dir)) {
600
+ options::OPT_emit_ldadd_cfile_path)) {
602
601
Diags.diagnose (SourceLoc (),
603
602
diag::error_cannot_have_supplementary_outputs,
604
603
A->getSpelling (), " -supplementary-output-file-map" );
Original file line number Diff line number Diff line change 1
1
// RUN: %empty-directory(%t)
2
- // RUN: %target-build-swift %s -module-name EmitWhileBuilding -emit-module -emit-module-path %t/ -emit-symbol-graph -emit-symbol-graph-dir %t/
2
+ // RUN: %target-build-swift %s -module-name EmitWhileBuilding -emit-module -emit-module-path %t/EmitWhileBuilding.swiftmodule -emit-symbol-graph -emit-symbol-graph-dir %t/
3
3
// RUN: %FileCheck %s --input-file %t/EmitWhileBuilding.symbols.json
4
4
5
5
// also try without the trailing slash on `-emit-symbol-graph-dir` and make sure it works
6
6
7
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
8
+ // RUN: %target-build-swift %s -module-name EmitWhileBuilding -emit-module -emit-module-path %t/EmitWhileBuilding.swiftmodule -emit-symbol-graph -emit-symbol-graph-dir %t
9
+ // RUN: %FileCheck %s --input-file %t/EmitWhileBuilding.symbols.json
10
+
11
+ // also try while forcing the use of supplementary file maps to make sure the symbol graph path gets
12
+ // added to the file map for the inner frontend call
13
+
14
+ // RUN: %empty-directory(%t)
15
+ // RUN: %target-build-swift %s -module-name EmitWhileBuilding -emit-module -emit-module-path %t/EmitWhileBuilding.swiftmodule -emit-symbol-graph -emit-symbol-graph-dir %t -driver-filelist-threshold=0 -O -whole-module-optimization
9
16
// RUN: %FileCheck %s --input-file %t/EmitWhileBuilding.symbols.json
10
17
11
18
/// Does a foo.
You can’t perform that action at this time.
0 commit comments