diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index ad67596360..8d7f76cb0a 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -4,6 +4,7 @@ on: push: branches: - master + - 0.12.x concurrency: # Cancels pending runs when a PR gets updated. group: ${{ github.head_ref || github.run_id }}-${{ github.actor }} diff --git a/CMakeLists.txt b/CMakeLists.txt index e677ee0947..8a409096e3 100644 --- a/CMakeLists.txt +++ b/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/README.md b/README.md index 13214b5bed..c069ed0387 100644 --- a/README.md +++ b/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/build.zig b/build.zig index 0e43b82f9a..b5db6e7a5b 100644 --- a/build.zig +++ b/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/doc/build.zig.zon.md b/doc/build.zig.zon.md index de5ec5fe9c..d0740a9237 100644 --- a/doc/build.zig.zon.md +++ b/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/doc/langref.html.in b/doc/langref.html.in index 2a53d40b4c..32be79988c 100644 --- a/doc/langref.html.in +++ b/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