mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Invoke Explicit Interface Build when '-explicit-interface-module-build' is specified on a '-compile-module-from-interface' frontend action, using the CompilerInstance instantiated directly from the command-line in order to build the module.
This commit is contained in:
12
test/ModuleInterface/ExplicitInterfaceBuild.swiftinterface
Normal file
12
test/ModuleInterface/ExplicitInterfaceBuild.swiftinterface
Normal file
@@ -0,0 +1,12 @@
|
||||
// swift-interface-format-version: 1.0
|
||||
// swift-module-flags: -module-name DoesNotIgnoreFlags -module-interface-preserve-types-as-written
|
||||
|
||||
// REQUIRES: OS=macosx
|
||||
// RUN: %empty-directory(%t)
|
||||
// Without '-explicit-interface-module-build' this job fails because of the mismatch in 'module-name'
|
||||
// RUN: %target-swift-frontend -compile-module-from-interface -module-name IgnoresFlags -explicit-interface-module-build -o %/t/IgnoresFlags.swiftmodule %s -verify
|
||||
|
||||
import Swift
|
||||
extension Int {
|
||||
public static var fortytwo: Int = 42
|
||||
}
|
||||
Reference in New Issue
Block a user