Skip to content

Commit fa40530

Browse files
authored
Merge branch 'master' into fix-min-int-peertypes
2 parents 4f5e771 + ae38fc6 commit fa40530

File tree

2,121 files changed

+137637
-69968
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

2,121 files changed

+137637
-69968
lines changed

.gitattributes

+9-3
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,20 @@
22
*.zon text eol=lf
33
*.txt text eol=lf
44
langref.html.in text eol=lf
5+
56
lib/std/compress/testdata/** binary
6-
lib/std/compress/deflate/testdata/** binary
77
lib/std/compress/flate/testdata/** binary
8+
lib/std/compress/lzma/testdata/** binary
9+
lib/std/compress/xz/testdata/** binary
10+
lib/std/crypto/codecs/asn1/der/testdata/** binary
11+
lib/std/tar/testdata/** binary
12+
src/Package/Fetch/testdata/** binary
13+
src/Package/Fetch/git/testdata/** binary
814

15+
lib/compiler/aro/** linguist-vendored
916
lib/include/** linguist-vendored
1017
lib/libc/** linguist-vendored
1118
lib/libcxx/** linguist-vendored
1219
lib/libcxxabi/** linguist-vendored
20+
lib/libtsan/** linguist-vendored
1321
lib/libunwind/** linguist-vendored
14-
lib/tsan/** linguist-vendored
15-
lib/compiler/aro/** linguist-vendored

.github/workflows/ci.yaml

+4-5
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ on:
44
push:
55
branches:
66
- master
7-
- llvm19
87
concurrency:
98
# Cancels pending runs when a PR gets updated.
109
group: ${{ github.head_ref || github.run_id }}-${{ github.actor }}
@@ -14,31 +13,31 @@ permissions:
1413
contents: read
1514
jobs:
1615
x86_64-linux-debug:
17-
timeout-minutes: 420
16+
timeout-minutes: 480
1817
runs-on: [self-hosted, Linux, x86_64]
1918
steps:
2019
- name: Checkout
2120
uses: actions/checkout@v4
2221
- name: Build and Test
2322
run: sh ci/x86_64-linux-debug.sh
2423
x86_64-linux-release:
25-
timeout-minutes: 420
24+
timeout-minutes: 480
2625
runs-on: [self-hosted, Linux, x86_64]
2726
steps:
2827
- name: Checkout
2928
uses: actions/checkout@v4
3029
- name: Build and Test
3130
run: sh ci/x86_64-linux-release.sh
3231
aarch64-linux-debug:
33-
timeout-minutes: 480
32+
timeout-minutes: 540
3433
runs-on: [self-hosted, Linux, aarch64]
3534
steps:
3635
- name: Checkout
3736
uses: actions/checkout@v4
3837
- name: Build and Test
3938
run: sh ci/aarch64-linux-debug.sh
4039
aarch64-linux-release:
41-
timeout-minutes: 480
40+
timeout-minutes: 540
4241
runs-on: [self-hosted, Linux, aarch64]
4342
steps:
4443
- name: Checkout

CMakeLists.txt

+12-6
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ project(zig
3838
)
3939

4040
set(ZIG_VERSION_MAJOR 0)
41-
set(ZIG_VERSION_MINOR 14)
41+
set(ZIG_VERSION_MINOR 15)
4242
set(ZIG_VERSION_PATCH 0)
4343
set(ZIG_VERSION "" CACHE STRING "Override Zig version string. Default is to find out with git.")
4444

@@ -132,9 +132,9 @@ else()
132132
set(ZIG_SYSTEM_LIBCXX "stdc++" CACHE STRING "system libcxx name for build.zig")
133133
endif()
134134

135-
find_package(llvm 19)
136-
find_package(clang 19)
137-
find_package(lld 19)
135+
find_package(llvm 20)
136+
find_package(clang 20)
137+
find_package(lld 20)
138138

139139
if(ZIG_STATIC_ZLIB)
140140
if (MSVC)
@@ -444,7 +444,6 @@ set(ZIG_STAGE2_SOURCES
444444
lib/std/json.zig
445445
lib/std/json/stringify.zig
446446
lib/std/leb128.zig
447-
lib/std/linked_list.zig
448447
lib/std/log.zig
449448
lib/std/macho.zig
450449
lib/std/math.zig
@@ -699,6 +698,13 @@ add_library(zigcpp STATIC ${ZIG_CPP_SOURCES})
699698
target_compile_features(zigcpp PRIVATE cxx_std_17)
700699
set_target_properties(zigcpp PROPERTIES POSITION_INDEPENDENT_CODE ${ZIG_PIE})
701700

701+
if(LLVM_LINK_MODE STREQUAL "static")
702+
target_compile_definitions(zigcpp PRIVATE
703+
LLVM_BUILD_STATIC
704+
CLANG_BUILD_STATIC
705+
)
706+
endif()
707+
702708
if(NOT MSVC)
703709
if(MINGW)
704710
target_compile_options(zigcpp PRIVATE -Wno-format)
@@ -809,7 +815,7 @@ if(MSVC)
809815
else()
810816
set(ZIG_WASM2C_COMPILE_FLAGS "-std=c99 -O2")
811817
set(ZIG1_COMPILE_FLAGS "-std=c99 -Os")
812-
set(ZIG2_COMPILE_FLAGS "-std=c99 -O0 -fno-stack-protector")
818+
set(ZIG2_COMPILE_FLAGS "-std=c99 -O0 -fno-sanitize=undefined -fno-stack-protector")
813819
if(APPLE)
814820
set(ZIG2_LINK_FLAGS "-Wl,-stack_size,0x10000000")
815821
elseif(MINGW)

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ Ensure you have the required dependencies:
4747

4848
* CMake >= 3.15
4949
* System C/C++ Toolchain
50-
* LLVM, Clang, LLD development libraries == 19.x
50+
* LLVM, Clang, LLD development libraries == 20.x
5151

5252
Then it is the standard CMake build process:
5353

0 commit comments

Comments
 (0)