]> granicus.if.org Git - clang/commit
clang-cl: Support /link option and set target to win32
authorHans Wennborg <hans@hanshq.net>
Tue, 13 Aug 2013 23:38:57 +0000 (23:38 +0000)
committerHans Wennborg <hans@hanshq.net>
Tue, 13 Aug 2013 23:38:57 +0000 (23:38 +0000)
commit5db9527a2e582c17bc835e6e2a5a8178efa5a1e8
tree6be8814206cee3c249cb138498b2f59833e6196d
parent4fce06cd52a8f4714524baa13b544ead9fd298a4
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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@188331 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Driver/CLCompatOptions.td
lib/Driver/Driver.cpp
lib/Driver/Tools.cpp
test/Driver/cl-link.c [new file with mode: 0644]