summaryrefslogtreecommitdiffstats
path: root/clang/test/Driver/nostdlib.c
diff options
context:
space:
mode:
authorAndrey Turetskiy <andrey.turetskiy@gmail.com>2016-03-14 11:19:43 +0000
committerAndrey Turetskiy <andrey.turetskiy@gmail.com>2016-03-14 11:19:43 +0000
commita486857cd4e9171c0b4597bbd1d757783186c6c3 (patch)
treebec55a320f957ea67c118d734e24bf7fdbc7c8f9 /clang/test/Driver/nostdlib.c
parent392408cfc82ff0681c82377902b873e0ab688378 (diff)
downloadbcm5719-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.c4
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'
OpenPOWER on IntegriCloud