| ... | @@ -91,7 +91,12 @@ set(ZIG_TARGET_MCPU "baseline" CACHE STRING "-mcpu parameter to output binaries | ... | @@ -91,7 +91,12 @@ set(ZIG_TARGET_MCPU "baseline" CACHE STRING "-mcpu parameter to output binaries |
| 91 | set(ZIG_EXECUTABLE "" CACHE STRING "(when cross compiling) path to already-built zig binary") | 91 | set(ZIG_EXECUTABLE "" CACHE STRING "(when cross compiling) path to already-built zig binary") |
| 92 | set(ZIG_SINGLE_THREADED off CACHE BOOL "limit the zig compiler to use only 1 thread") | 92 | set(ZIG_SINGLE_THREADED off CACHE BOOL "limit the zig compiler to use only 1 thread") |
| 93 | set(ZIG_OMIT_STAGE2 off CACHE BOOL "omit the stage2 backend from stage1") | 93 | set(ZIG_OMIT_STAGE2 off CACHE BOOL "omit the stage2 backend from stage1") |
| 94 | set(ZIG_ENABLE_LOGGING off CACHE BOOL "enable logging") | 94 | |
| | 95 | if("${CMAKE_BUILD_TYPE}" STREQUAL "Debug") |
| | 96 | set(ZIG_ENABLE_LOGGING ON CACHE BOOL "enable logging") |
| | 97 | else() |
| | 98 | set(ZIG_ENABLE_LOGGING OFF CACHE BOOL "enable logging") |
| | 99 | endif() |
| 95 | | 100 | |
| 96 | if("${ZIG_TARGET_TRIPLE}" STREQUAL "native") | 101 | if("${ZIG_TARGET_TRIPLE}" STREQUAL "native") |
| 97 | set(ZIG_USE_LLVM_CONFIG ON CACHE BOOL "use llvm-config to find LLVM libraries") | 102 | set(ZIG_USE_LLVM_CONFIG ON CACHE BOOL "use llvm-config to find LLVM libraries") |