Skip to content

Commit 2fd7687

Browse files
[Caching] symbol-graph output directory path is cache invariant
Make output directory path cache invariant.
1 parent a22bd3a commit 2fd7687

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

include/swift/Option/Options.td

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1662,7 +1662,7 @@ def emit_symbol_graph: Flag<["-"], "emit-symbol-graph">,
16621662

16631663
def emit_symbol_graph_dir : Separate<["-"], "emit-symbol-graph-dir">,
16641664
Flags<[FrontendOption, NoInteractiveOption, ArgumentIsPath,
1665-
SupplementaryOutput, HelpHidden]>,
1665+
SupplementaryOutput, HelpHidden, CacheInvariant]>,
16661666
HelpText<"Emit a symbol graph to directory <dir>">,
16671667
MetaVarName<"<dir>">;
16681668

test/CAS/symbol-graph.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
// RUN: -parse-stdlib -disable-implicit-string-processing-module-import -disable-implicit-concurrency-module-import \
2424
// RUN: %t/main.swift -o %t/Test.swiftmodule -swift-version 5 -cache-compile-job -cas-path %t/cas -I %t/include \
2525
// RUN: -emit-symbol-graph -emit-symbol-graph-dir %t/symbol-graph2 \
26-
// RUN: -emit-module @%t/Test.cmd -Rcache-compile-job 2>&1 | %FileCheck %s --check-prefix=CACHE-MISS
26+
// RUN: -emit-module @%t/Test.cmd -Rcache-compile-job 2>&1 | %FileCheck %s --check-prefix=CACHE-HIT
2727

2828
// CACHE-HIT: remark: replay output file '{{.*}}{{/|\\}}symbol-graph2{{/|\\}}Test.symbols.json': key 'llvmcas://{{.*}}'
2929
// CACHE-HIT: remark: replay output file '{{.*}}{{/|\\}}symbol-graph2{{/|\\}}[email protected]': key 'llvmcas://{{.*}}'

0 commit comments

Comments
 (0)