]> granicus.if.org Git - clang/commit
clang-cl: Support the run-time selection options (/MD, /MT et al.)
authorHans Wennborg <hans@hanshq.net>
Thu, 8 Aug 2013 00:17:41 +0000 (00:17 +0000)
committerHans Wennborg <hans@hanshq.net>
Thu, 8 Aug 2013 00:17:41 +0000 (00:17 +0000)
commitb3574796d7cc0113e54b6516fc16e17ca09459fb
tree111eb33a631b2786477fc39dde10313586262f64
parent712b7473f9de7cc1979c3754d03e15a2f492349e
clang-cl: Support the run-time selection options (/MD, /MT et al.)

These flags set some preprocessor macros and injects a dependency
on the runtime library into the object file, which later is picked up
by the linker.

This also adds a new CC1 flag for adding a dependent library.

Differential Revision: http://llvm-reviews.chandlerc.com/D1315

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@187945 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Driver/CC1Options.td
include/clang/Driver/CLCompatOptions.td
include/clang/Frontend/CodeGenOptions.h
lib/CodeGen/ModuleBuilder.cpp
lib/Driver/Tools.cpp
lib/Driver/Tools.h
lib/Frontend/CompilerInvocation.cpp
test/CodeGen/dependent-lib.c [new file with mode: 0644]
test/Driver/cl-options.c
test/Driver/cl-runtime-flags.c [new file with mode: 0644]