aboutsummaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authordaurnimator <quae@daurnimator.com>2019-07-09 19:03:57 +1000
committerAndrew Kelley <andrew@ziglang.org>2019-07-16 12:33:13 -0400
commit3a67c13b5db7efe28d4656d5da808f42ac026cc3 (patch)
treee48245e790b81bfec05f2412d932f83119274971 /cmake
parent9dcddc2249217c8c99c9d07bb0187904847d2ae2 (diff)
downloadzig-3a67c13b5db7efe28d4656d5da808f42ac026cc3.tar.gz
zig-3a67c13b5db7efe28d4656d5da808f42ac026cc3.zip
cmake: allow user to select static vs dynamic LLVM
Diffstat (limited to 'cmake')
-rw-r--r--cmake/Findllvm.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmake/Findllvm.cmake b/cmake/Findllvm.cmake
index e13c1e741c..3eb6bd9003 100644
--- a/cmake/Findllvm.cmake
+++ b/cmake/Findllvm.cmake
@@ -65,7 +65,7 @@ NEED_TARGET("WebAssembly")
NEED_TARGET("X86")
NEED_TARGET("XCore")
-if(NOT(CMAKE_BUILD_TYPE STREQUAL "Debug") OR ZIG_STATIC)
+if(ZIG_STATIC_LLVM)
execute_process(
COMMAND ${LLVM_CONFIG_EXE} --libfiles --link-static
OUTPUT_VARIABLE LLVM_LIBRARIES_SPACES