summaryrefslogtreecommitdiffstats
path: root/llvm/docs
diff options
context:
space:
mode:
authorHans Wennborg <hans@hanshq.net>2013-11-13 19:12:02 +0000
committerHans Wennborg <hans@hanshq.net>2013-11-13 19:12:02 +0000
commitfc59812bee11fe53ce4322ef5f24ff9cc5e7652d (patch)
treeb71606b0fcc816dee9b86e84f2c1479224ba30d0 /llvm/docs
parent7cf6f00f56609f1c157311b2ee5eaa23ee62e058 (diff)
downloadbcm5719-llvm-fc59812bee11fe53ce4322ef5f24ff9cc5e7652d.tar.gz
bcm5719-llvm-fc59812bee11fe53ce4322ef5f24ff9cc5e7652d.zip
CMake: make building with /MT an option instead of always forcing it
for release builds. This is a follow-up to r194589. Aaron pointed out that building libraries with /MT and using them in an application that uses a different run-time library can be a bad idea. Move the option to build with /MT behind a CMake option so it can be turned on selectively, such as when building the toolchain installer. llvm-svn: 194596
Diffstat (limited to 'llvm/docs')
-rw-r--r--llvm/docs/CMake.rst5
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/docs/CMake.rst b/llvm/docs/CMake.rst
index c9fe538c9df..69eeaab529d 100644
--- a/llvm/docs/CMake.rst
+++ b/llvm/docs/CMake.rst
@@ -280,6 +280,11 @@ LLVM-specific variables
are ``Address``, ``Memory`` and ``MemoryWithOrigins``. Defaults to empty
string.
+**LLVM_STATIC_MSVC_RUNTIME**:BOOL
+ When building with MSVC, link against the static runtime library (/MT or /MTd
+ for release and debug builds, respectively) instead of the dynamic one.
+ Defaults to OFF.
+
Executing the test suite
========================
OpenPOWER on IntegriCloud