mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Frontend options should only be printed under `swift-module-flags-ignored:` temporarily to prevent condfails for older development compilers that are still in use (as a rule of thumb, swiftinterfaces should be compatible with compilers that are up to 6 months old). None of the frontend flags that are currently categorized as "ignorable" need to be ignorable anymore.
28 lines
1.5 KiB
Swift
28 lines
1.5 KiB
Swift
// RUN: %empty-directory(%t)
|
|
|
|
// RUN: %target-swift-frontend -enable-library-evolution -emit-module-interface-path %t.swiftinterface -module-name t %s -target-min-inlining-version 42 -emit-module -o /dev/null -Onone -enforce-exclusivity=unchecked -autolink-force-load -enable-bare-slash-regex
|
|
// RUN: %FileCheck %s < %t.swiftinterface -check-prefix=CHECK-SWIFTINTERFACE
|
|
//
|
|
// CHECK-SWIFTINTERFACE: swift-module-flags:
|
|
// CHECK-SWIFTINTERFACE-SAME: -enable-library-evolution
|
|
// CHECK-SWIFTINTERFACE-SAME: -target-min-inlining-version 42
|
|
// CHECK-SWIFTINTERFACE-SAME: -Onone
|
|
// CHECK-SWIFTINTERFACE-SAME: -enforce-exclusivity=unchecked
|
|
// CHECK-SWIFTINTERFACE-SAME: -autolink-force-load
|
|
// CHECK-SWIFTINTERFACE-SAME: -enable-bare-slash-regex
|
|
|
|
// Make sure flags show up when filelists are enabled
|
|
|
|
// RUN: %target-build-swift %s -driver-filelist-threshold=0 -emit-module-interface -o %t/foo -module-name foo -module-link-name fooCore -whole-module-optimization -Ounchecked -enforce-exclusivity=unchecked -autolink-force-load 2>&1
|
|
// RUN: %FileCheck %s < %t/foo.swiftinterface --check-prefix CHECK-FILELIST-INTERFACE
|
|
|
|
// CHECK-FILELIST-INTERFACE: swift-module-flags:
|
|
// CHECK-FILELIST-INTERFACE-SAME: -target
|
|
// CHECK-FILELIST-INTERFACE-SAME: -autolink-force-load
|
|
// CHECK-FILELIST-INTERFACE-SAME: -module-link-name fooCore
|
|
// CHECK-FILELIST-INTERFACE-SAME: -enforce-exclusivity=unchecked
|
|
// CHECK-FILELIST-INTERFACE-SAME: -Ounchecked
|
|
// CHECK-FILELIST-INTERFACE-SAME: -module-name foo
|
|
|
|
public func foo() { }
|