mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[Frontend][Index] Add frontend option to skip indexing the stdlib (for test performance)
Several tests related to indexing system modules were taking a considerable amount of time (100+ seconds in the worst case) indexing the standard library. This adds a frontend option to skip it and updates those tests to pass it.
This commit is contained in:
@@ -604,6 +604,10 @@ def external_pass_pipeline_filename : Separate<["-"], "external-pass-pipeline-fi
|
||||
def index_system_modules : Flag<["-"], "index-system-modules">,
|
||||
HelpText<"Emit index data for imported serialized swift system modules">;
|
||||
|
||||
def index_ignore_stdlib :
|
||||
Flag<["-"], "index-ignore-stdlib">,
|
||||
HelpText<"Avoid emitting index data for the standard library.">;
|
||||
|
||||
def dump_interface_hash : Flag<["-"], "dump-interface-hash">,
|
||||
HelpText<"Parse input file(s) and dump interface token hash(es)">,
|
||||
ModeOpt;
|
||||
|
||||
Reference in New Issue
Block a user