mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
ModuleInterface: ensure -disable-clang-spi flag to propagate to module interface builders
This commit is contained in:
20
test/ModuleInterface/spi-available-interface.swift
Normal file
20
test/ModuleInterface/spi-available-interface.swift
Normal file
@@ -0,0 +1,20 @@
|
||||
// REQUIRES: OS=macosx
|
||||
// RUN: %empty-directory(%t/inputs)
|
||||
// RUN: %target-swift-frontend -typecheck %s -F %S/../ClangImporter/Inputs/frameworks -DFoo -emit-module-interface-path %t/inputs/Foo.swiftinterface -module-name Foo -enable-library-evolution -disable-clang-spi
|
||||
|
||||
// RUN: %target-swift-frontend -typecheck %s -F %S/../ClangImporter/Inputs/frameworks -enable-library-evolution -I %t/inputs -disable-clang-spi
|
||||
|
||||
// RUN: %target-swift-frontend -typecheck-module-from-interface %t/inputs/Foo.swiftinterface -F %S/../ClangImporter/Inputs/frameworks -disable-clang-spi
|
||||
|
||||
|
||||
#if Foo
|
||||
|
||||
import SPIContainer
|
||||
|
||||
public func bar(_ c: SPIInterface1) {}
|
||||
|
||||
#else
|
||||
|
||||
import Foo
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user