diff options
author | Dan Gohman <dan433584@gmail.com> | 2015-12-21 23:30:41 +0000 |
---|---|---|
committer | Dan Gohman <dan433584@gmail.com> | 2015-12-21 23:30:41 +0000 |
commit | f4b4e08db0482a267a6ffe639b99019027bf610c (patch) | |
tree | 03be189ce30174f72a12d6d4df1df217181d1645 /clang/test/Driver/wasm-toolchain.c | |
parent | 3f79e3259360a1b112b9e5351302e4a6e720d732 (diff) | |
download | bcm5719-llvm-f4b4e08db0482a267a6ffe639b99019027bf610c.tar.gz bcm5719-llvm-f4b4e08db0482a267a6ffe639b99019027bf610c.zip |
[WebAssembly] Remove the -target command-line flag from the ld commandline.
This flag isn't needed, or permitted, with the "ld" flavor of lld.
Also, add a basic ld commandline test.
llvm-svn: 256216
Diffstat (limited to 'clang/test/Driver/wasm-toolchain.c')
-rw-r--r-- | clang/test/Driver/wasm-toolchain.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/test/Driver/wasm-toolchain.c b/clang/test/Driver/wasm-toolchain.c new file mode 100644 index 00000000000..6e3d84ce1d2 --- /dev/null +++ b/clang/test/Driver/wasm-toolchain.c @@ -0,0 +1,3 @@ +// RUN: %clang -### -target wasm32-unknown-unknown -x assembler %s 2>&1 | FileCheck -check-prefix=AS_LINK %s +// AS_LINK: clang{{.*}}" "-cc1as" {{.*}} "-o" "[[temp:[^"]*]]" +// AS_LINK: lld" "-flavor" "ld" "[[temp]]" "-o" "a.out" |