Michael Neumann
19703a5db9
bootstrap: Add support for DragonFly
2025-09-27 10:00:36 +02:00
Ryan Liptak
b1a0a4e03b
Update descriptions of -f[no-]error-tracing to match the actual behavior
...
Before https://github.com/ziglang/zig/pull/18160 , error tracing defaulted to true in ReleaseSafe, but that is no longer the case. These option descriptions were never updating accordingly.
2025-09-26 14:01:17 -07:00
Andrew Kelley
e0dc2e4e3f
Merge pull request #25342 from ziglang/fuzz-limit
...
fuzzing: implement limited fuzzing
2025-09-26 05:28:46 -07:00
Andrew Kelley
3b365a1f9b
Merge pull request #25351 from ziglang/chomp
...
std.mem: introduce cut functions; rename "index of" to "find"
2025-09-26 01:45:07 -07:00
Andrew Kelley
ad80a8b552
issue template: translate-c tracked by separate project
2025-09-25 20:36:58 -07:00
Alex Rønne Petersen
be24821464
ci: remove superfluous -Dtarget=native-native-none in x86_64-freebsd scripts
2025-09-26 02:41:28 +02:00
Andrew Kelley
52a13f6a7f
web ui: fix not sending initial context sometimes
...
This would cause the web ui to crash in js or wasm.
2025-09-25 17:16:41 -07:00
Andrew Kelley
2da8ec9865
fuzzing: fix off-by-one in limit count
2025-09-25 17:16:10 -07:00
Andrew Kelley
98253bc0ee
Compilation: --debug-rt always Debug
...
--debug-rt previously would make rt libs match the root module. Now they
are always debug when --debug-rt is passed. This includes compiler-rt,
fuzzer lib, and others.
2025-09-25 17:15:47 -07:00
Alex Rønne Petersen
86077fe6bd
compiler: move self-hosted backends from src/arch to src/codegen
2025-09-26 02:02:07 +02:00
Alex Rønne Petersen
212715f62d
test: remove pie test case from test-standalone
...
We already have test/cases/pie_linux.zig covering this.
2025-09-26 01:33:38 +02:00
Alex Rønne Petersen
459ad8c8e6
ci: stop passing -Dskip-translate-c -Dno-langref on loongarch64-linux
...
No longer necessary since we've stopped using Clang for this.
2025-09-26 01:33:38 +02:00
Alex Rønne Petersen
17f9a25924
test: remove -Dskip-translate-c from test-standalone
...
No longer necessary since we've stopped using Clang for this.
2025-09-26 01:33:26 +02:00
Andrew Kelley
2a88a6a456
Merge pull request #24497 from ziglang/aro-translate-c
...
compiler: update aro and translate-c to latest; delete clang translate-c
2025-09-25 14:18:49 -07:00
Andrew Kelley
14e227d8a6
std.mem: add cutLast and cutScalarLast
2025-09-25 11:38:38 -07:00
Andrew Kelley
97bef50dc3
std.mem: rename all "index of" functions
...
Moving towards our function naming convention of having one word per
concept and constructing function names out of concatenated concepts.
In `std.mem` the concepts are:
* "find" - return index of substring
* "pos" - starting index parameter
* "last" - search from the end
* "linear" - simple for loop rather than fancy algo
* "scalar" - substring is a single element
2025-09-25 11:28:58 -07:00
Andrew Kelley
3411b5e499
std.mem: add cut and cutScalar and example usage
2025-09-25 11:11:46 -07:00
Andrew Kelley
dd2f1cbebf
std.mem: rename chomp to cut
2025-09-25 10:54:28 -07:00
Andrew Kelley
ccaf82d243
CLI: simpler semantics for prefixed integer args
2025-09-25 10:50:41 -07:00
Andrew Kelley
513389bc5b
CLI: exploit std.mem.chompPrefix
...
fixes a bug in how -fstructured-cfg and -fno-structured-cfg are handled.
2025-09-25 10:50:41 -07:00
Andrew Kelley
ac4d79e322
std.mem: introduce chompPrefix and chompSuffix
2025-09-25 10:50:41 -07:00
Loris Cro
9bb0b43ea3
implement review suggestions
2025-09-25 18:20:19 +02:00
Alex Rønne Petersen
a73f246b29
std.Thread: disable test on armeb in addition to thumbeb
...
Same falky failure on both. See ed7ff0b693 .
2025-09-25 17:49:47 +02:00
Alex Rønne Petersen
dd4be26f53
libc-test: disable daemon-failure.c
...
It's flaky in that systems with a high FD limit will get an unexpected ENOMEM
error from daemon(), failing the test.
2025-09-25 12:57:56 +02:00
Jacob Young
6257f4abb7
x86_64: improve support for large enums
...
Closes #25247
2025-09-24 21:20:27 -07:00
Andrew Kelley
5f763b7dc5
resinator: work around error VARARGS not implemented for this compiler
2025-09-24 21:04:46 -07:00
Zhenming-Lin
99323a4da1
improve impl of __floorh, __floorx, __ceilh and __ceilx
2025-09-24 20:57:25 -07:00
Andrew Kelley
41e5331c08
resinator: fix compile errors
2025-09-24 20:35:01 -07:00
Veikka Tuominen
d83c76eb5a
update aro & translate-c
2025-09-24 20:01:19 -07:00
Andrew Kelley
e05073b9e4
aro does not have -mmacos version flags or -Wno-overriding-option
2025-09-24 20:01:19 -07:00
Andrew Kelley
3764f7b0f2
compiler: disable InternPool.debug_state as it is unsound
...
There can be more than one InternPool instance active at the same time.
2025-09-24 20:01:19 -07:00
Andrew Kelley
aa92c237e9
aro does not have a pragma-pack warning
2025-09-24 20:01:19 -07:00
Andrew Kelley
8cba6b1df8
aro: update
...
This is f5fb720a5399ee98e45f36337b2f68a4d23a783c plus ehaas's nonnull
attribute pull request currently at 4b26cb3ac610a0a070fc43e43da8b4cdf0e9101b
with zig patches intact.
2025-09-24 20:01:19 -07:00
Andrew Kelley
01132e0cf8
remove behavior test that depended on std.zig.c_translation
...
behavior tests may not depend on this namespace.
2025-09-24 20:01:19 -07:00
Andrew Kelley
79d9997d22
delete @cImport tests
...
These are now maintained in a separate repository: ziglang/translate-c
2025-09-24 20:01:19 -07:00
Andrew Kelley
e1d6f478c9
@cImport: don't pass args to Aro it doesn't understand
2025-09-24 20:01:19 -07:00
Andrew Kelley
9ad1e83e63
zig fmt
2025-09-24 20:01:19 -07:00
Andrew Kelley
f4d328e2ac
Compilation: use renameTmpIntoCache
...
solves several problems with this pattern
2025-09-24 20:01:19 -07:00
Andrew Kelley
f0d3b7abb8
aro: fix dep file logic
...
also add ability to omit main source file from dep file as it messes up
caching strategy
2025-09-24 20:01:19 -07:00
Andrew Kelley
9e979e5a9d
Compilation: re-implement cImport
2025-09-24 20:01:19 -07:00
Andrew Kelley
ea169e6ccf
std.Build.Cache: clarify parameter is sub path, not basename
2025-09-24 20:01:19 -07:00
Andrew Kelley
b6930097ec
translate-c: update for array list defaults
2025-09-24 20:01:19 -07:00
Andrew Kelley
e5f4dbdf8a
fix rebase conflicts
2025-09-24 20:01:19 -07:00
Andrew Kelley
2f00b630f2
remove c_builtins.zig from cmake
2025-09-24 20:01:19 -07:00
Andrew Kelley
0f88f9c664
aro: avoid BoundedArray
2025-09-24 20:01:19 -07:00
Veikka Tuominen
21f5f06f1f
Compilation: avoid passing Clang specific options to Aro
2025-09-24 20:01:18 -07:00
Veikka Tuominen
e7a622fb33
update aro and translate-c sources
2025-09-24 20:01:18 -07:00
Ryan Liptak
e8e8d7e5c8
resinator: Update for latest aro
2025-09-24 20:01:18 -07:00
Andrew Kelley
01d993b230
add translate-c CLI args
2025-09-24 20:01:18 -07:00
Andrew Kelley
8e27821b60
simplify diagnostics
2025-09-24 20:01:18 -07:00