diff options
author | Andrey Turetskiy <andrey.turetskiy@gmail.com> | 2016-03-14 11:19:43 +0000 |
---|---|---|
committer | Andrey Turetskiy <andrey.turetskiy@gmail.com> | 2016-03-14 11:19:43 +0000 |
commit | a486857cd4e9171c0b4597bbd1d757783186c6c3 (patch) | |
tree | bec55a320f957ea67c118d734e24bf7fdbc7c8f9 /clang/test/Driver/nostdlib.c | |
parent | 392408cfc82ff0681c82377902b873e0ab688378 (diff) | |
download | bcm5719-llvm-a486857cd4e9171c0b4597bbd1d757783186c6c3.tar.gz bcm5719-llvm-a486857cd4e9171c0b4597bbd1d757783186c6c3.zip |
[Driver] Enable --rtlib option for MSVC target
This enables "--rtlib compiler-rt" option under MSVC environment.
Patch by Roman Shirokiy.
Differential Revision: http://reviews.llvm.org/D17453
llvm-svn: 263422
Diffstat (limited to 'clang/test/Driver/nostdlib.c')
-rw-r--r-- | clang/test/Driver/nostdlib.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/test/Driver/nostdlib.c b/clang/test/Driver/nostdlib.c index 47c6f8bacd4..6e7bc0eb93e 100644 --- a/clang/test/Driver/nostdlib.c +++ b/clang/test/Driver/nostdlib.c @@ -22,6 +22,10 @@ // RUN: -resource-dir=%S/Inputs/resource_dir -lclang_rt.builtins-i686 \ // RUN: | FileCheck --check-prefix=CHECK-LINUX-NOSTDLIB %s // +// RUN: %clang -target x86_64-pc-windows-msvc -nostdlib --rtlib=compiler-rt -### %s 2>&1 | FileCheck %s -check-prefix CHECK-MSVC-NOSTDLIB +// RUN: %clang -target x86_64-pc-windows-msvc --rtlib=compiler-rt -nostdlib -### %s 2>&1 | FileCheck %s -check-prefix CHECK-MSVC-NOSTDLIB +// // CHECK-LINUX-NOSTDLIB: warning: argument unused during compilation: '--rtlib=compiler-rt' // CHECK-LINUX-NOSTDLIB: "{{(.*[^.0-9A-Z_a-z])?}}ld{{(.exe)?}}" // CHECK-LINUX-NOSTDLIB-NOT: "{{.*}}/Inputs/resource_dir{{/|\\\\}}lib{{/|\\\\}}linux{{/|\\\\}}libclang_rt.builtins-i686.a" +// CHECK-MSVC-NOSTDLIB: warning: argument unused during compilation: '--rtlib=compiler-rt' |