aboutsummaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorAndrew Kelley <superjoe30@gmail.com>2018-03-30 13:20:13 -0400
committerAndrew Kelley <superjoe30@gmail.com>2018-03-30 13:20:13 -0400
commitf586acabdcc4adaeda7bc278463c20e4033e8cc9 (patch)
tree5b94df731d3515a56da9aaf233d59cf6398263eb /cmake
parentedca1739975f69a695d1ee12ba88ebca1778fefb (diff)
downloadzig-f586acabdcc4adaeda7bc278463c20e4033e8cc9.tar.gz
zig-f586acabdcc4adaeda7bc278463c20e4033e8cc9.zip
add ZIG_STATIC cmake option
it's not compatible with glibc but it works with musl
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 296e0a91f7..021c3c6f27 100644
--- a/cmake/Findllvm.cmake
+++ b/cmake/Findllvm.cmake
@@ -15,7 +15,7 @@ find_program(LLVM_CONFIG_EXE
"c:/msys64/mingw64/bin"
"C:/Libraries/llvm-6.0.0/bin")
-if(NOT(CMAKE_BUILD_TYPE STREQUAL "Debug"))
+if(NOT(CMAKE_BUILD_TYPE STREQUAL "Debug") OR ZIG_STATIC)
execute_process(
COMMAND ${LLVM_CONFIG_EXE} --libfiles --link-static
OUTPUT_VARIABLE LLVM_LIBRARIES_SPACES