diff --git a/README.md b/README.md index 265a25b24f..582a149f2c 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ to find and inspect the patch diffs. * LLVM, LLD, Clang 17.0.6 * zlib 1.3 * zstd 1.5.2 - * zig 0.12.0 + * zig 0.12.1 For other versions, check the git tags of this repository. diff --git a/build b/build index e45d0b9cdc..7e015dd591 100755 --- a/build +++ b/build @@ -7,7 +7,7 @@ TARGET="$1" # Example: riscv64-linux-gnu MCPU="$2" # Examples: `baseline`, `native`, `generic+v7a`, or `arm1176jzf_s` ROOTDIR="$(pwd)" -ZIG_VERSION="0.12.0" +ZIG_VERSION="0.12.1" TARGET_OS_AND_ABI=${TARGET#*-} # Example: linux-gnu diff --git a/build.bat b/build.bat index 08697032c2..0b128260f3 100644 --- a/build.bat +++ b/build.bat @@ -35,7 +35,7 @@ if "%VSCMD_ARG_HOST_ARCH%"=="x86" set OUTDIR=out-win-x86 set ROOTDIR=%~dp0 set "ROOTDIR_CMAKE=%ROOTDIR:\=/%" -set ZIG_VERSION=0.12.0 +set ZIG_VERSION=0.12.1 set JOBS_ARG= diff --git a/zig/CMakeLists.txt b/zig/CMakeLists.txt index e677ee0947..8a409096e3 100644 --- a/zig/CMakeLists.txt +++ b/zig/CMakeLists.txt @@ -37,7 +37,7 @@ set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake ${CMAKE_MODULE_PATH}) set(ZIG_VERSION_MAJOR 0) set(ZIG_VERSION_MINOR 12) -set(ZIG_VERSION_PATCH 0) +set(ZIG_VERSION_PATCH 1) set(ZIG_VERSION "" CACHE STRING "Override Zig version string. Default is to find out with git.") if("${ZIG_VERSION}" STREQUAL "") @@ -92,6 +92,12 @@ set(ZIG_SHARED_LLVM off CACHE BOOL "Prefer linking against shared LLVM libraries set(ZIG_STATIC_LLVM ${ZIG_STATIC} CACHE BOOL "Prefer linking against static LLVM libraries") set(ZIG_STATIC_ZLIB ${ZIG_STATIC} CACHE BOOL "Prefer linking against static zlib") set(ZIG_STATIC_ZSTD ${ZIG_STATIC} CACHE BOOL "Prefer linking against static zstd") +if(APPLE AND ZIG_STATIC) + set(ZIG_STATIC_CURSES on) +else() + set(ZIG_STATIC_CURSES off) +endif() +set(ZIG_STATIC_CURSES ${ZIG_STATIC_CURSES} CACHE BOOL "Prefer linking against static curses") set(ZIG_USE_CCACHE off CACHE BOOL "Use ccache") if(ZIG_USE_CCACHE) @@ -160,7 +166,7 @@ if(ZIG_STATIC_ZSTD) list(APPEND LLVM_LIBRARIES "${ZSTD}") endif() -if(APPLE AND ZIG_STATIC) +if(ZIG_STATIC_CURSES) list(REMOVE_ITEM LLVM_LIBRARIES "-lcurses") find_library(CURSES NAMES libcurses.a libncurses.a NAMES_PER_DIR PATHS diff --git a/zig/README.md b/zig/README.md index 13214b5bed..c069ed0387 100644 --- a/zig/README.md +++ b/zig/README.md @@ -85,8 +85,6 @@ therefore lacking these features: - [Some ELF linking features](https://github.com/ziglang/zig/issues/17749) - [Most COFF/PE linking features](https://github.com/ziglang/zig/issues/17751) - [Some WebAssembly linking features](https://github.com/ziglang/zig/issues/17750) -- [Ability to output LLVM bitcode](https://github.com/ziglang/zig/issues/13265) -- [Windows resource file compilation](https://github.com/ziglang/zig/issues/17752) - [Ability to create import libs from def files](https://github.com/ziglang/zig/issues/17807) - [Automatic importlib file generation for Windows DLLs](https://github.com/ziglang/zig/issues/17753) - [Ability to create static archives from object files](https://github.com/ziglang/zig/issues/9828) diff --git a/zig/build.zig b/zig/build.zig index 0e43b82f9a..b5db6e7a5b 100644 --- a/zig/build.zig +++ b/zig/build.zig @@ -9,7 +9,7 @@ const fs = std.fs; const InstallDirectoryOptions = std.Build.InstallDirectoryOptions; const assert = std.debug.assert; -const zig_version = std.SemanticVersion{ .major = 0, .minor = 12, .patch = 0 }; +const zig_version = std.SemanticVersion{ .major = 0, .minor = 12, .patch = 1 }; const stack_size = 32 * 1024 * 1024; pub fn build(b: *std.Build) !void { diff --git a/zig/doc/build.zig.zon.md b/zig/doc/build.zig.zon.md index de5ec5fe9c..d0740a9237 100644 --- a/zig/doc/build.zig.zon.md +++ b/zig/doc/build.zig.zon.md @@ -12,6 +12,14 @@ build.zig. String. Required. +This is the default name used by packages depending on this one. For example, +when a user runs `zig fetch --save `, this field is used as the key in the +`dependencies` table. Although the user can choose a different name, most users +will stick with this provided value. + +It is redundant to include "zig" in this name because it is already within the +Zig package namespace. + ### `version` String. Required. diff --git a/zig/doc/langref.html.in b/zig/doc/langref.html.in index 2a53d40b4c..32be79988c 100644 --- a/zig/doc/langref.html.in +++ b/zig/doc/langref.html.in @@ -314,8 +314,8 @@ 0.9.1 | 0.10.1 | 0.11.0 | - 0.12.0 | - master + 0.12.1 | + master