mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
-modulewrap invocations create an object file. The target should be passed along so that the object file is created for the same target as any other outputs.
8 lines
428 B
Swift
8 lines
428 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]] -target x86_64-unknown-linux-gnu -o [[OBJ:.*\.o]]
|
|
// CHECK: bin/clang++{{.*}} [[OBJ]]
|