diff options
author | Hans Wennborg <hans@hanshq.net> | 2013-09-10 20:18:04 +0000 |
---|---|---|
committer | Hans Wennborg <hans@hanshq.net> | 2013-09-10 20:18:04 +0000 |
commit | f1a7425bd95ecb233d7333a2e1b0d63dde5e803d (patch) | |
tree | d3dd8bdc0e73d8abc43fdec4573c6c4c6b9660f1 /clang/test/Driver/cl-link.c | |
parent | d8110b6558ad111a1c1c1542c12122900791311e (diff) | |
download | bcm5719-llvm-f1a7425bd95ecb233d7333a2e1b0d63dde5e803d.tar.gz bcm5719-llvm-f1a7425bd95ecb233d7333a2e1b0d63dde5e803d.zip |
clang-cl: Support building DLLs (PR17083)
This adds driver support for building DLLs (the /LD and /LDd flags).
It basically does two things: runtime selection and passing -dll and
-implib to the linker.
llvm-svn: 190428
Diffstat (limited to 'clang/test/Driver/cl-link.c')
-rw-r--r-- | clang/test/Driver/cl-link.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/clang/test/Driver/cl-link.c b/clang/test/Driver/cl-link.c index f6e18b8f1a6..f46298a1947 100644 --- a/clang/test/Driver/cl-link.c +++ b/clang/test/Driver/cl-link.c @@ -17,3 +17,17 @@ // ASAN: "-incremental:no" // ASAN: "{{.*}}clang_rt.asan-i386.lib" // ASAN: "{{.*}}cl-link{{.*}}.obj" + +// RUN: %clang_cl /LD -### %s 2>&1 | FileCheck --check-prefix=DLL %s +// RUN: %clang_cl /LDd -### %s 2>&1 | FileCheck --check-prefix=DLL %s +// DLL: link.exe +// "-dll" + +// RUN: %clang_cl /LD /Tc%s -### -fsanitize=address 2>&1 | FileCheck --check-prefix=ASAN-DLL %s +// RUN: %clang_cl /LDd /Tc%s -### -fsanitize=address 2>&1 | FileCheck --check-prefix=ASAN-DLL %s +// ASAN-DLL: link.exe +// ASAN-DLL: "-dll" +// ASAN-DLL: "-debug" +// ASAN-DLL: "-incremental:no" +// ASAN-DLL: "{{.*}}clang_rt.asan-i386-dll_thunk.lib" +// ASAN-DLL: "{{.*}}cl-link{{.*}}.obj" |