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:
@@ -4,7 +4,7 @@
|
||||
// make sure the frontend job doesn't try to emit the auxiliary outputs based
|
||||
// on the non-indexed files. (This is how Xcode currently constructs -index-file
|
||||
// invocations: take a normal build command and add extra arguments to it.)
|
||||
// RUN: %target-build-swift -index-file -index-file-path %S/Inputs/SwiftModuleA.swift %S/Inputs/SwiftModuleA.swift %s -index-store-path %t/idx -module-name driver_index -emit-objc-header-path %t/out.h -emit-module-interface-path %t/out.swiftinterface
|
||||
// RUN: %target-build-swift -index-file -index-file-path %S/Inputs/SwiftModuleA.swift %S/Inputs/SwiftModuleA.swift %s -index-store-path %t/idx -Xfrontend -index-ignore-stdlib -module-name driver_index -emit-objc-header-path %t/out.h -emit-module-interface-path %t/out.swiftinterface
|
||||
|
||||
// RUN: test ! -f %t/out.h
|
||||
// RUN: test ! -f %t/out.swiftinterface
|
||||
|
||||
Reference in New Issue
Block a user