mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Introduce a new compiler flag `-module-abi-name <name>` that uses the given name as the ABI name for the module (rather than the module's name in source code). The ABI name impacts name mangling and metadata.
6 lines
254 B
Swift
6 lines
254 B
Swift
// RUN: %empty-directory(%t)
|
|
// RUN: %target-swift-frontend -typecheck -emit-module-interface-path %t/Hello.swiftinterface -module-name Hello -module-abi-name Goodbye %s
|
|
// RUN: %FileCheck %s < %t/Hello.swiftinterface
|
|
|
|
// CHECK: -module-abi-name Goodbye
|