| ... | ... | @@ -36,6 +36,11 @@ endif() |
| 36 | 36 | message("Configuring zig version ${ZIG_VERSION}") |
| 37 | 37 | |
| 38 | 38 | set(ZIG_STATIC off CACHE BOOL "Attempt to build a static zig executable (not compatible with glibc)") |
| 39 | set(ZIG_STATIC_LLVM off CACHE BOOL "Prefer linking against static LLVM libraries") |
| 40 | |
| 41 | if(ZIG_STATIC) |
| 42 | set(ZIG_STATIC_LLVM "on") |
| 43 | endif() |
| 39 | 44 | |
| 40 | 45 | string(REGEX REPLACE "\\\\" "\\\\\\\\" ZIG_LIBC_LIB_DIR_ESCAPED "${ZIG_LIBC_LIB_DIR}") |
| 41 | 46 | string(REGEX REPLACE "\\\\" "\\\\\\\\" ZIG_LIBC_STATIC_LIB_DIR_ESCAPED "${ZIG_LIBC_STATIC_LIB_DIR}") |