summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend
diff options
context:
space:
mode:
authorHans Wennborg <hans@hanshq.net>2013-08-08 00:17:41 +0000
committerHans Wennborg <hans@hanshq.net>2013-08-08 00:17:41 +0000
commit75958c41e220358b66a12c257f3f87abe4b372d5 (patch)
tree7fb948b065b519816df001efa9bf4691ffb0ea0c /clang/lib/Frontend
parenta5689e69afbd1b43c35958be453192a48c507d37 (diff)
downloadbcm5719-llvm-75958c41e220358b66a12c257f3f87abe4b372d5.tar.gz
bcm5719-llvm-75958c41e220358b66a12c257f3f87abe4b372d5.zip
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 llvm-svn: 187945
Diffstat (limited to 'clang/lib/Frontend')
-rw-r--r--clang/lib/Frontend/CompilerInvocation.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/lib/Frontend/CompilerInvocation.cpp b/clang/lib/Frontend/CompilerInvocation.cpp
index 27ddd84d52f..a4c93fa5b50 100644
--- a/clang/lib/Frontend/CompilerInvocation.cpp
+++ b/clang/lib/Frontend/CompilerInvocation.cpp
@@ -502,6 +502,8 @@ static bool ParseCodeGenArgs(CodeGenOptions &Opts, ArgList &Args, InputKind IK,
}
}
+ Opts.DependentLibraries = Args.getAllArgValues(OPT_dependent_lib);
+
return Success;
}
OpenPOWER on IntegriCloud