diff options
| author | Sam Clegg <sbc@chromium.org> | 2017-10-27 18:10:19 +0000 |
|---|---|---|
| committer | Sam Clegg <sbc@chromium.org> | 2017-10-27 18:10:19 +0000 |
| commit | 471d7afdf06e26af506b07dc70e35df2dc0ff078 (patch) | |
| tree | 976774cb2367b7845b11da53940d3f9661245940 /clang/test/Driver/wasm-toolchain.c | |
| parent | 3fa55c50263873e1c96a4611424fd67c6f0cae0e (diff) | |
| download | bcm5719-llvm-471d7afdf06e26af506b07dc70e35df2dc0ff078.tar.gz bcm5719-llvm-471d7afdf06e26af506b07dc70e35df2dc0ff078.zip | |
[WebAssembly] Add crt1.o with calling lld
Also, for OS unknown targets like wasm, don't include
'unknown' in the library path. This is a fix for rL316719.
Differential Revision: https://reviews.llvm.org/D39354
llvm-svn: 316777
Diffstat (limited to 'clang/test/Driver/wasm-toolchain.c')
| -rw-r--r-- | clang/test/Driver/wasm-toolchain.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/test/Driver/wasm-toolchain.c b/clang/test/Driver/wasm-toolchain.c index 77407b899ad..e9862f0b7d8 100644 --- a/clang/test/Driver/wasm-toolchain.c +++ b/clang/test/Driver/wasm-toolchain.c @@ -27,10 +27,10 @@ // RUN: %clang -### -no-canonical-prefixes -target wasm32-unknown-unknown --sysroot=/foo %s 2>&1 | FileCheck -check-prefix=LINK %s // LINK: clang{{.*}}" "-cc1" {{.*}} "-o" "[[temp:[^"]*]]" -// LINK: lld{{.*}}" "-flavor" "wasm" "-L/foo/lib" "[[temp]]" "-allow-undefined-file" "wasm.syms" "-lc" "{{.*[/\\]}}libclang_rt.builtins-wasm32.a" "-o" "a.out" +// LINK: lld{{.*}}" "-flavor" "wasm" "-L/foo/lib" "crt1.o" "[[temp]]" "-allow-undefined-file" "wasm.syms" "-lc" "{{.*[/\\]}}libclang_rt.builtins-wasm32.a" "-o" "a.out" // A basic C link command-line with optimization. // RUN: %clang -### -O2 -no-canonical-prefixes -target wasm32-unknown-unknown --sysroot=/foo %s 2>&1 | FileCheck -check-prefix=LINK_OPT %s // LINK_OPT: clang{{.*}}" "-cc1" {{.*}} "-o" "[[temp:[^"]*]]" -// LINK_OPT: lld{{.*}}" "-flavor" "wasm" "-L/foo/lib" "[[temp]]" "-allow-undefined-file" "wasm.syms" "-lc" "{{.*[/\\]}}libclang_rt.builtins-wasm32.a" "-o" "a.out" +// LINK_OPT: lld{{.*}}" "-flavor" "wasm" "-L/foo/lib" "crt1.o" "[[temp]]" "-allow-undefined-file" "wasm.syms" "-lc" "{{.*[/\\]}}libclang_rt.builtins-wasm32.a" "-o" "a.out" |

