mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Add test to check if -enable-ossa-modules is inherited by its dependencies
This commit is contained in:
21
test/ScanDependencies/enable-ossa-modules-pass-down.swift
Normal file
21
test/ScanDependencies/enable-ossa-modules-pass-down.swift
Normal file
@@ -0,0 +1,21 @@
|
||||
// REQUIRES: objc_interop
|
||||
// RUN: %empty-directory(%t)
|
||||
// RUN: mkdir -p %t/clang-module-cache
|
||||
// RUN: mkdir -p %t/Frameworks
|
||||
// RUN: mkdir -p %t/Frameworks/E.framework/
|
||||
// RUN: mkdir -p %t/Frameworks/E.framework/Modules
|
||||
// RUN: mkdir -p %t/Frameworks/E.framework/Modules/E.swiftmodule
|
||||
|
||||
// Copy over the interface
|
||||
// RUN: cp %S/Inputs/Swift/E.swiftinterface %t/Frameworks/E.framework/Modules/E.swiftmodule/%module-target-triple.swiftinterface
|
||||
|
||||
// Run the scan
|
||||
// RUN: %target-swift-frontend -scan-dependencies -enable-ossa-modules -disable-implicit-swift-modules -module-load-mode prefer-interface %s -o %t/deps.json -F %t/Frameworks/ -sdk %t
|
||||
// RUN: %validate-json %t/deps.json | %FileCheck %s
|
||||
|
||||
import E
|
||||
|
||||
// CHECK: E.swiftmodule/{{.*}}.swiftinterface
|
||||
// CHECK: "commandLine": [
|
||||
// CHECK: "-enable-ossa-modules"
|
||||
// CHECK: ]
|
||||
Reference in New Issue
Block a user