Skip to content

Commit 0cd31fc

Browse files
authored
Merge pull request #22780 from ziglang/llvm20
LLVM 20
2 parents 8acedfd + cefe65c commit 0cd31fc

File tree

1,248 files changed

+60803
-25487
lines changed

Some content is hidden

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

1,248 files changed

+60803
-25487
lines changed

.github/workflows/ci.yaml

Lines changed: 0 additions & 1 deletion
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 }}

CMakeLists.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -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)
@@ -808,7 +808,7 @@ if(MSVC)
808808
else()
809809
set(ZIG_WASM2C_COMPILE_FLAGS "-std=c99 -O2")
810810
set(ZIG1_COMPILE_FLAGS "-std=c99 -Os")
811-
set(ZIG2_COMPILE_FLAGS "-std=c99 -O0 -fno-stack-protector")
811+
set(ZIG2_COMPILE_FLAGS "-std=c99 -O0 -fno-sanitize=undefined -fno-stack-protector")
812812
if(APPLE)
813813
set(ZIG2_LINK_FLAGS "-Wl,-stack_size,0x10000000")
814814
elseif(MINGW)

build.zig

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@ pub fn build(b: *std.Build) !void {
376376

377377
const test_filters = b.option([]const []const u8, "test-filter", "Skip tests that do not match any filter") orelse &[0][]const u8{};
378378
const test_target_filters = b.option([]const []const u8, "test-target-filter", "Skip tests whose target triple do not match any filter") orelse &[0][]const u8{};
379-
const test_slow_targets = b.option(bool, "test-slow-targets", "Enable running module tests for targets that have a slow compiler backend") orelse false;
379+
const test_extra_targets = b.option(bool, "test-extra-targets", "Enable running module tests for additional targets") orelse false;
380380

381381
var chosen_opt_modes_buf: [4]builtin.OptimizeMode = undefined;
382382
var chosen_mode_index: usize = 0;
@@ -433,7 +433,7 @@ pub fn build(b: *std.Build) !void {
433433
test_modules_step.dependOn(tests.addModuleTests(b, .{
434434
.test_filters = test_filters,
435435
.test_target_filters = test_target_filters,
436-
.test_slow_targets = test_slow_targets,
436+
.test_extra_targets = test_extra_targets,
437437
.root_src = "test/behavior.zig",
438438
.name = "behavior",
439439
.desc = "Run the behavior tests",
@@ -449,7 +449,7 @@ pub fn build(b: *std.Build) !void {
449449
test_modules_step.dependOn(tests.addModuleTests(b, .{
450450
.test_filters = test_filters,
451451
.test_target_filters = test_target_filters,
452-
.test_slow_targets = test_slow_targets,
452+
.test_extra_targets = test_extra_targets,
453453
.root_src = "test/c_import.zig",
454454
.name = "c-import",
455455
.desc = "Run the @cImport tests",
@@ -464,7 +464,7 @@ pub fn build(b: *std.Build) !void {
464464
test_modules_step.dependOn(tests.addModuleTests(b, .{
465465
.test_filters = test_filters,
466466
.test_target_filters = test_target_filters,
467-
.test_slow_targets = test_slow_targets,
467+
.test_extra_targets = test_extra_targets,
468468
.root_src = "lib/compiler_rt.zig",
469469
.name = "compiler-rt",
470470
.desc = "Run the compiler_rt tests",
@@ -480,7 +480,7 @@ pub fn build(b: *std.Build) !void {
480480
test_modules_step.dependOn(tests.addModuleTests(b, .{
481481
.test_filters = test_filters,
482482
.test_target_filters = test_target_filters,
483-
.test_slow_targets = test_slow_targets,
483+
.test_extra_targets = test_extra_targets,
484484
.root_src = "lib/c.zig",
485485
.name = "universal-libc",
486486
.desc = "Run the universal libc tests",
@@ -496,7 +496,7 @@ pub fn build(b: *std.Build) !void {
496496
test_modules_step.dependOn(tests.addModuleTests(b, .{
497497
.test_filters = test_filters,
498498
.test_target_filters = test_target_filters,
499-
.test_slow_targets = test_slow_targets,
499+
.test_extra_targets = test_extra_targets,
500500
.root_src = "lib/std/std.zig",
501501
.name = "std",
502502
.desc = "Run the standard library tests",
@@ -1166,10 +1166,10 @@ const llvm_libs = [_][]const u8{
11661166
"LLVMXRay",
11671167
"LLVMLibDriver",
11681168
"LLVMDlltoolDriver",
1169+
"LLVMTelemetry",
11691170
"LLVMTextAPIBinaryReader",
11701171
"LLVMCoverage",
11711172
"LLVMLineEditor",
1172-
"LLVMSandboxIR",
11731173
"LLVMXCoreDisassembler",
11741174
"LLVMXCoreCodeGen",
11751175
"LLVMXCoreDesc",
@@ -1196,6 +1196,10 @@ const llvm_libs = [_][]const u8{
11961196
"LLVMSystemZCodeGen",
11971197
"LLVMSystemZDesc",
11981198
"LLVMSystemZInfo",
1199+
"LLVMSPIRVCodeGen",
1200+
"LLVMSPIRVDesc",
1201+
"LLVMSPIRVInfo",
1202+
"LLVMSPIRVAnalysis",
11991203
"LLVMSparcDisassembler",
12001204
"LLVMSparcAsmParser",
12011205
"LLVMSparcCodeGen",
@@ -1294,18 +1298,19 @@ const llvm_libs = [_][]const u8{
12941298
"LLVMCoroutines",
12951299
"LLVMipo",
12961300
"LLVMVectorize",
1301+
"LLVMSandboxIR",
12971302
"LLVMLinker",
12981303
"LLVMInstrumentation",
12991304
"LLVMFrontendOpenMP",
13001305
"LLVMFrontendOffloading",
13011306
"LLVMFrontendOpenACC",
13021307
"LLVMFrontendHLSL",
13031308
"LLVMFrontendDriver",
1309+
"LLVMFrontendAtomic",
13041310
"LLVMExtensions",
13051311
"LLVMDWARFLinkerParallel",
13061312
"LLVMDWARFLinkerClassic",
13071313
"LLVMDWARFLinker",
1308-
"LLVMCodeGenData",
13091314
"LLVMGlobalISel",
13101315
"LLVMMIRParser",
13111316
"LLVMAsmPrinter",
@@ -1314,6 +1319,7 @@ const llvm_libs = [_][]const u8{
13141319
"LLVMTarget",
13151320
"LLVMObjCARCOpts",
13161321
"LLVMCodeGenTypes",
1322+
"LLVMCGData",
13171323
"LLVMIRPrinter",
13181324
"LLVMInterfaceStub",
13191325
"LLVMFileCheck",
@@ -1329,14 +1335,14 @@ const llvm_libs = [_][]const u8{
13291335
"LLVMDebugInfoBTF",
13301336
"LLVMDebugInfoPDB",
13311337
"LLVMDebugInfoMSF",
1338+
"LLVMDebugInfoCodeView",
13321339
"LLVMDebugInfoDWARF",
13331340
"LLVMObject",
13341341
"LLVMTextAPI",
13351342
"LLVMMCParser",
13361343
"LLVMIRReader",
13371344
"LLVMAsmParser",
13381345
"LLVMMC",
1339-
"LLVMDebugInfoCodeView",
13401346
"LLVMBitReader",
13411347
"LLVMFuzzerCLI",
13421348
"LLVMCore",

ci/aarch64-linux-debug.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ set -e
88
ARCH="$(uname -m)"
99
TARGET="$ARCH-linux-musl"
1010
MCPU="baseline"
11-
CACHE_BASENAME="zig+llvm+lld+clang-$TARGET-0.14.0-dev.1622+2ac543388"
11+
CACHE_BASENAME="zig+llvm+lld+clang-$TARGET-0.15.0-dev.233+7c85dc460"
1212
PREFIX="$HOME/deps/$CACHE_BASENAME"
1313
ZIG="$PREFIX/bin/zig"
1414

ci/aarch64-linux-release.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ set -e
88
ARCH="$(uname -m)"
99
TARGET="$ARCH-linux-musl"
1010
MCPU="baseline"
11-
CACHE_BASENAME="zig+llvm+lld+clang-$TARGET-0.14.0-dev.1622+2ac543388"
11+
CACHE_BASENAME="zig+llvm+lld+clang-$TARGET-0.15.0-dev.233+7c85dc460"
1212
PREFIX="$HOME/deps/$CACHE_BASENAME"
1313
ZIG="$PREFIX/bin/zig"
1414

ci/aarch64-macos-debug.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ set -e
99
ZIGDIR="$PWD"
1010
TARGET="$ARCH-macos-none"
1111
MCPU="baseline"
12-
CACHE_BASENAME="zig+llvm+lld+clang-$TARGET-0.14.0-dev.1622+2ac543388"
12+
CACHE_BASENAME="zig+llvm+lld+clang-$TARGET-0.15.0-dev.233+7c85dc460"
1313
PREFIX="$HOME/$CACHE_BASENAME"
1414
ZIG="$PREFIX/bin/zig"
1515

ci/aarch64-macos-release.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ set -e
99
ZIGDIR="$PWD"
1010
TARGET="$ARCH-macos-none"
1111
MCPU="baseline"
12-
CACHE_BASENAME="zig+llvm+lld+clang-$TARGET-0.14.0-dev.1622+2ac543388"
12+
CACHE_BASENAME="zig+llvm+lld+clang-$TARGET-0.15.0-dev.233+7c85dc460"
1313
PREFIX="$HOME/$CACHE_BASENAME"
1414
ZIG="$PREFIX/bin/zig"
1515

ci/aarch64-windows.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
$TARGET = "$($Env:ARCH)-windows-gnu"
2-
$ZIG_LLVM_CLANG_LLD_NAME = "zig+llvm+lld+clang-$TARGET-0.14.0-dev.1622+2ac543388"
2+
$ZIG_LLVM_CLANG_LLD_NAME = "zig+llvm+lld+clang-$TARGET-0.15.0-dev.233+7c85dc460"
33
$MCPU = "baseline"
44
$ZIG_LLVM_CLANG_LLD_URL = "https://ziglang.org/deps/$ZIG_LLVM_CLANG_LLD_NAME.zip"
55
$PREFIX_PATH = "$(Get-Location)\..\$ZIG_LLVM_CLANG_LLD_NAME"

ci/x86_64-linux-debug.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ set -e
88
ARCH="$(uname -m)"
99
TARGET="$ARCH-linux-musl"
1010
MCPU="baseline"
11-
CACHE_BASENAME="zig+llvm+lld+clang-$TARGET-0.14.0-dev.1622+2ac543388"
11+
CACHE_BASENAME="zig+llvm+lld+clang-$TARGET-0.15.0-dev.233+7c85dc460"
1212
PREFIX="$HOME/deps/$CACHE_BASENAME"
1313
ZIG="$PREFIX/bin/zig"
1414

ci/x86_64-linux-release.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ set -e
88
ARCH="$(uname -m)"
99
TARGET="$ARCH-linux-musl"
1010
MCPU="baseline"
11-
CACHE_BASENAME="zig+llvm+lld+clang-$TARGET-0.14.0-dev.1622+2ac543388"
11+
CACHE_BASENAME="zig+llvm+lld+clang-$TARGET-0.15.0-dev.233+7c85dc460"
1212
PREFIX="$HOME/deps/$CACHE_BASENAME"
1313
ZIG="$PREFIX/bin/zig"
1414

0 commit comments

Comments
 (0)