Add a test for Wasm toolchain in the legacy driver

This commit is contained in:
Max Desiatov
2021-09-14 14:35:37 +01:00
parent 710816d3e0
commit 9e7c3c9cd8

4
test/Driver/wasm.swift Normal file
View File

@@ -0,0 +1,4 @@
// RUN: %swiftc_driver -driver-print-jobs -target wasm32-unknown-wasi -v %s 2>&1 | %FileCheck %s -check-prefix=CHECK-WASM
// CHECK-WASM: swift{{.*}} -frontend -c -primary-file {{.*}} -target wasm32-unknown-wasi -disable-objc-interop
// CHECK-WASM: clang{{.*}} -lswiftCore --target=wasm32-unknown-wasi -v {{.*}}-o