You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add driver support to specify an overriding output path to record in the index data
The frontend supports this via new options -index-unit-output-path and
-index-unit-output-path-filelist that mirror -o and -output-filelist. These are
intended to allow sharing index data across builds in separate directories (so
different -o values) that are otherwise equivalent as far as the index data is
concerned (e.g. an ASAN build and a non-ASAN build) by supplying the same
-index-unit-output-path for both.
This change updates the driver to add these new options to the frontend
invocation 1) when a new "index-unit-output-path" entry is specified for one
or more input files in the -output-file-map json or 2) if -index-file is
specified, when a new -index-unit-output-path driver option is passed.
Resolves rdar://problem/74816412
Copy file name to clipboardExpand all lines: Sources/SwiftOptions/Options.swift
+4Lines changed: 4 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -308,6 +308,8 @@ extension Option {
308
308
publicstaticletindexIgnoreSystemModules:Option=Option("-index-ignore-system-modules",.flag, attributes:[.noInteractive], helpText:"Avoid indexing system modules")
309
309
publicstaticletindexStorePath:Option=Option("-index-store-path",.separate, attributes:[.frontend,.argumentIsPath], metaVar:"<path>", helpText:"Store indexing data to <path>")
310
310
publicstaticletindexSystemModules:Option=Option("-index-system-modules",.flag, attributes:[.helpHidden,.frontend,.noDriver], helpText:"Emit index data for imported serialized swift system modules")
311
+
publicstaticletindexUnitOutputPath:Option=Option("-index-unit-output-path",.separate, attributes:[.frontend,.noInteractive,.argumentIsPath], metaVar:"<file>", helpText:"Record <file> as the output file in the produced index data")
312
+
publicstaticletindexUnitOutputPathFilelist:Option=Option("-index-unit-output-path-filelist",.separate, attributes:[.frontend,.noDriver], helpText:"Specify unit index output paths in a file rather than on the command line")
0 commit comments