Files
swift-mirror/test/Driver/modulewrap.swift
Janosch Hildebrand 292e6a99a9 [Driver] Pass target triple to -modulewrap invocations (#5922)
-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.
2016-11-28 08:36:41 -08:00

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]]