mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
This adds an argument to allow negating `-whole-module-optimization`. This is useful for cases where it's easier to add an extra flag to your swiftc invocation rather than removing the original one.
11 lines
656 B
Swift
11 lines
656 B
Swift
// RUN: %empty-directory(%t)
|
|
|
|
// RUN: %swiftc_driver -whole-module-optimization %S/../Inputs/empty.swift -### 2>&1 | %FileCheck -check-prefix WMO %s
|
|
// WMO-NOT: -primary-file
|
|
// RUN: %swiftc_driver -whole-module-optimization -no-whole-module-optimization %S/../Inputs/empty.swift -### 2>&1 | %FileCheck -check-prefix NO-WMO %s
|
|
// NO-WMO: -primary-file
|
|
|
|
// RUN: %swiftc_driver -enable-batch-mode -whole-module-optimization -no-whole-module-optimization %S/../Inputs/empty.swift -### 2>&1 | %FileCheck -check-prefix BATCH %s
|
|
// BATCH: -primary-file
|
|
// BATCH-NOT: warning: ignoring '-enable-batch-mode' because '-whole-module-optimization' was also specified
|