mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[index/build] Upstream indexing while building changes
This patch upstreams previously AppleInternal changes for indexing while building.
This commit is contained in:
@@ -169,6 +169,11 @@ static bool ParseFrontendArgs(FrontendOptions &Opts, ArgList &Args,
|
||||
Opts.GroupInfoPath = A->getValue();
|
||||
}
|
||||
|
||||
if (const Arg *A = Args.getLastArg(OPT_index_store_path)) {
|
||||
Opts.IndexStorePath = A->getValue();
|
||||
}
|
||||
Opts.IndexSystemModules |= Args.hasArg(OPT_index_system_modules);
|
||||
|
||||
Opts.EmitVerboseSIL |= Args.hasArg(OPT_emit_verbose_sil);
|
||||
Opts.EmitSortedSIL |= Args.hasArg(OPT_emit_sorted_sil);
|
||||
|
||||
@@ -1143,6 +1148,9 @@ static bool ParseClangImporterArgs(ClangImporterOptions &Opts,
|
||||
if (const Arg *A = Args.getLastArg(OPT_target_cpu))
|
||||
Opts.TargetCPU = A->getValue();
|
||||
|
||||
if (const Arg *A = Args.getLastArg(OPT_index_store_path))
|
||||
Opts.IndexStorePath = A->getValue();
|
||||
|
||||
for (const Arg *A : make_range(Args.filtered_begin(OPT_Xcc),
|
||||
Args.filtered_end())) {
|
||||
Opts.ExtraArgs.push_back(A->getValue());
|
||||
|
||||
Reference in New Issue
Block a user