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
@@ -309,6 +309,8 @@ extension Option {
309
309
publicstaticletindexIgnoreSystemModules:Option=Option("-index-ignore-system-modules",.flag, attributes:[.noInteractive], helpText:"Avoid indexing system modules")
310
310
publicstaticletindexStorePath:Option=Option("-index-store-path",.separate, attributes:[.frontend,.argumentIsPath], metaVar:"<path>", helpText:"Store indexing data to <path>")
311
311
publicstaticletindexSystemModules:Option=Option("-index-system-modules",.flag, attributes:[.helpHidden,.frontend,.noDriver], helpText:"Emit index data for imported serialized swift system modules")
312
+
publicstaticletindexUnitOutputPathFilelist:Option=Option("-index-unit-output-path-filelist",.separate, attributes:[.helpHidden,.frontend,.noDriver], helpText:"Specify index unit output paths in a file rather than on the command line")
313
+
publicstaticletindexUnitOutputPath:Option=Option("-index-unit-output-path",.separate, attributes:[.frontend,.argumentIsPath], metaVar:"<path>", helpText:"Use <path> as the output path in the produced index data.")
0 commit comments