| ... | @@ -89,6 +89,7 @@ set(ZIG_TARGET_MCPU "baseline" CACHE STRING "-mcpu parameter to output binaries | ... | @@ -89,6 +89,7 @@ set(ZIG_TARGET_MCPU "baseline" CACHE STRING "-mcpu parameter to output binaries |
| 89 | set(ZIG_EXECUTABLE "" CACHE STRING "(when cross compiling) path to already-built zig binary") | 89 | set(ZIG_EXECUTABLE "" CACHE STRING "(when cross compiling) path to already-built zig binary") |
| 90 | set(ZIG_SINGLE_THREADED off CACHE BOOL "limit the zig compiler to use only 1 thread") | 90 | set(ZIG_SINGLE_THREADED off CACHE BOOL "limit the zig compiler to use only 1 thread") |
| 91 | set(ZIG_OMIT_STAGE2 off CACHE BOOL "omit the stage2 backend from stage1") | 91 | set(ZIG_OMIT_STAGE2 off CACHE BOOL "omit the stage2 backend from stage1") |
| | 92 | set(ZIG_ENABLE_LOGGING off CACHE BOOL "enable logging") |
| 92 | | 93 | |
| 93 | if("${ZIG_TARGET_TRIPLE}" STREQUAL "native") | 94 | if("${ZIG_TARGET_TRIPLE}" STREQUAL "native") |
| 94 | set(ZIG_USE_LLVM_CONFIG ON CACHE BOOL "use llvm-config to find LLVM libraries") | 95 | set(ZIG_USE_LLVM_CONFIG ON CACHE BOOL "use llvm-config to find LLVM libraries") |
| ... | @@ -607,6 +608,12 @@ else() | ... | @@ -607,6 +608,12 @@ else() |
| 607 | set(ZIG_OMIT_STAGE2_BOOL "false") | 608 | set(ZIG_OMIT_STAGE2_BOOL "false") |
| 608 | endif() | 609 | endif() |
| 609 | | 610 | |
| | 611 | if(ZIG_ENABLE_LOGGING) |
| | 612 | set(ZIG_ENABLE_LOGGING_BOOL "true") |
| | 613 | else() |
| | 614 | set(ZIG_ENABLE_LOGGING_BOOL "false") |
| | 615 | endif() |
| | 616 | |
| 610 | configure_file ( | 617 | configure_file ( |
| 611 | "${CMAKE_SOURCE_DIR}/src/stage1/config.h.in" | 618 | "${CMAKE_SOURCE_DIR}/src/stage1/config.h.in" |
| 612 | "${ZIG_CONFIG_H_OUT}" | 619 | "${ZIG_CONFIG_H_OUT}" |