diff options
author | Hans Wennborg <hans@hanshq.net> | 2013-08-13 23:38:57 +0000 |
---|---|---|
committer | Hans Wennborg <hans@hanshq.net> | 2013-08-13 23:38:57 +0000 |
commit | 2e27459d6c016cd0e49151fb3cd0c5c64b858412 (patch) | |
tree | c2974750c5691a6cd56e2812cbde4ddab4c9dd4b /clang/test/Driver/cl-link.c | |
parent | 7a15c4af9052cead89e81733d52ef9685905d1c8 (diff) | |
download | bcm5719-llvm-2e27459d6c016cd0e49151fb3cd0c5c64b858412.tar.gz bcm5719-llvm-2e27459d6c016cd0e49151fb3cd0c5c64b858412.zip |
clang-cl: Support /link option and set target to win32
This adds support for the /link option, which forwards
subsequent arguments to the linker.
The test for this will only work when targetting win32.
Since that's the only target where clang-cl makes sense,
use that target by default.
Differential Revision: http://llvm-reviews.chandlerc.com/D1388
llvm-svn: 188331
Diffstat (limited to 'clang/test/Driver/cl-link.c')
-rw-r--r-- | clang/test/Driver/cl-link.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/clang/test/Driver/cl-link.c b/clang/test/Driver/cl-link.c new file mode 100644 index 00000000000..6de089ba0c9 --- /dev/null +++ b/clang/test/Driver/cl-link.c @@ -0,0 +1,12 @@ +// Don't attempt slash switches on msys bash. +// REQUIRES: shell-preserves-root + +// Note: %s must be preceded by -- or bound to another option, otherwise it may +// be interpreted as a command-line option, e.g. on Mac where %s is commonly +// under /Users. + +// RUN: %clang_cl /Tc%s -### /link foo bar baz 2>&1 | FileCheck %s +// CHECK: link.exe +// CHECK: "foo" +// CHECK: "bar" +// CHECK: "baz" |