mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
inside a swift ast section in an object file so it can be passed to the linker. The driver automatically wraps merged swiftmodules iff the target is ELF. rdar://problem/22407666 Swift SVN r31641
8 lines
394 B
Swift
8 lines
394 B
Swift
// RUN: %swiftc_driver -driver-print-jobs -target x86_64-unknown-linux-gnu -g %s | FileCheck %s
|
|
|
|
// CHECK: bin/swift -frontend{{.*}}-emit-module-path [[MOD:.*\.swiftmodule]]
|
|
// CHECK: bin/swift {{.*}}-emit-module [[MOD]]
|
|
// CHECK-SAME: -o [[MERGED:.*\.swiftmodule]]
|
|
// CHECK: bin/swift -modulewrap [[MERGED]] -o [[OBJ:.*\.o]]
|
|
// CHECK: bin/clang++{{.*}} [[OBJ]]
|