26483 Commits

Author SHA1 Message Date
Andrew Kelley
e8f3c4c4b1
Merge pull request #13610 from bcrist/child_process_already_terminated
return error.AlreadyTerminated from std.ChildProcess.kill when necessary
2023-10-18 10:23:23 -04:00
Robin Voetter
24b065a6a8
Merge pull request #17561 from alichraghi/spirv-0
spirv: memcpy
2023-10-18 15:38:30 +02:00
Andrew Kelley
aeadcb3918 disable flaky linker test
tracked by #17576
2023-10-17 21:46:13 -07:00
Andrew Kelley
149f2f8adb
Merge pull request #17524 from Vexu/aro-translate-c
Add ability to test Aro based `translate-c`
2023-10-18 00:32:59 -04:00
Ben Crist
fb9376bd04 Double check that child processes have really exited when
TerminateProcess reports ACCESS_DENIED
2023-10-17 16:56:39 -07:00
Ben Crist
6d47198303 return error.AlreadyTerminated from std.ChildProcess.kill when necessary 2023-10-17 16:56:15 -07:00
Tobias Simetsreiter
7a9500fd80
Fix rendering ast in zon mode (#17547)
Co-authored-by: Tobias Simetsreiter <tobias.simetsreiter@wabtec.com>
2023-10-17 19:04:01 -04:00
dweiller
f58811a58a package fetching: support .tar.zst archives 2023-10-17 19:02:00 -04:00
Andrew Kelley
25400fadf8 disable two flaky link tests
Tracking issue #17576
2023-10-17 16:00:14 -07:00
David
364c54460f
Deflate: fix missing value in reset 2023-10-17 21:46:47 +00:00
Bogdan Romanyuk
ad168db727
Sema: disallow @intFromPtr for comptime-only types 2023-10-17 20:05:55 +00:00
David
5c8912d7a4
XXH3 Implementation for Zig STD (#17530)
XXH3 is the faster alternative to XXH64 which utilizes SIMD
when hashing large chunks of memory and similar mixing to
WyHash (64x64 -> 128 mul) for smaller inputs.

Co-authored-by: Reixcon226 <87927264+Rexicon226@users.noreply.github.com>

---------

Co-authored-by: kprotty <kbutcher6200@gmail.com>
2023-10-17 13:55:01 -05:00
Andrew Kelley
3b21c15782
Merge pull request #17562 from ziglang/fetch-symlink-normalize-sep
Package.Fetch: normalize path separators in symlinks
2023-10-17 14:35:39 -04:00
Andrew Kelley
5234b8be9c CI: bump aarch64-linux-release timeout to 8 hours
Same as 0b8fca5a195278bb5d5fb1ea09a504c30f751415. Whne the system gets
busy, the runs take drastically longer.
2023-10-17 11:35:03 -07:00
kcbanner
68ed787751 windows: fix ReadLink not using a synchronous file handle 2023-10-17 14:33:55 -04:00
Jakub Konka
eb5276c94e
Merge pull request #17556 from ziglang/elf-link-zig-proper
elf: port 99% of zld ELF linker to Zig proper
2023-10-17 17:36:40 +02:00
Jakub Konka
742a130ce5 elf: fix use-after-move 2023-10-17 17:35:16 +02:00
Andrew Kelley
5039a5db83
Merge pull request #17558 from xxxbxxx/glibc-strtoul
build compatibility for c++ & linux
2023-10-17 11:09:53 -04:00
Jacob Young
cfa247e53b x86_64: fix C abi argument passing in memory 2023-10-17 10:41:48 -04:00
Andrew Kelley
877393d17a std.fs: fix relative symbolic links on Windows
closes #17564
2023-10-17 06:27:07 -04:00
Ali Chraghi
6d8a979265 spirv: memcpy 2023-10-17 13:02:30 +03:30
Jakub Konka
666e9df170 elf: ensure we build with -fPIE when testing init array order 2023-10-17 11:30:56 +02:00
Ali Chraghi
2d762a76a4 sema: emit logical and/or for safety checks
this has no performance impact as there is no branching either way
2023-10-17 13:00:36 +03:30
Veikka Tuominen
96f9e20152 add c_frontend to translate-c cache hash 2023-10-17 11:55:17 +03:00
Veikka Tuominen
e765495b11 tests: translate-c and run-translated-c to the test harness 2023-10-17 11:55:17 +03:00
Veikka Tuominen
58b07ea14f sync Aro dependency
ref: 482951b0e0eb99ec5dd122e7f893a007586f83f4
2023-10-17 11:55:01 +03:00
Andrew Kelley
0b8fca5a19 CI: bump aarch64-linux-debug timeout to 8 hours
When the system gets busy, the runs take drastically longer.
2023-10-16 21:55:11 -07:00
Andrew Kelley
ba656e5c9f zig fetch: add --debug-hash argument
This argument causes zig to print verbose hashing information to stdout,
which can be used to diff two different fetches and find out why the
hashes do not equal each other.
2023-10-16 18:15:47 -07:00
Ali Chraghi
e44152e252 spirv: fieldParentPtr 2023-10-16 20:27:28 -04:00
Andrew Kelley
f1a9344ffe std.fs.openDir: handle OBJECT_NAME_INVALID 2023-10-16 17:22:24 -07:00
Andrew Kelley
b171a6f25d Package.Fetch: normalize path separators in symlinks
closes #17549
2023-10-16 16:47:47 -07:00
Andrew Kelley
1456f95b3c std: disable flaky test on aarch64-windows
tracked by #17134
2023-10-16 16:13:46 -07:00
Jakub Konka
43fb74f81a elf: do not open file if emitting object file for LLVM and elf linker
This is at least until we implement `-r` option in the linker.
2023-10-16 23:57:33 +02:00
Xavier Bouchoux
69d6f2e1b8 build.zig: add support for using "zig c++" as the bootstrap c++ compiler
The build was previously failing with `error: unknown command: -print-file-name=libstdc++.a`
because the command invocation was
`zig -print-file-name=libstdc++.a`
instead of
`zig c++ -print-file-name=libstdc++.a`

note: .cxx_compiler_arg1 = "" instead of undefined to avoid breaking existing setups without requiring to run cmake again.
2023-10-16 23:07:04 +02:00
Xavier Bouchoux
0afead5651 glibc patch: add backwards compatibility for strtol-family functions
following suit from b40943e253c079ec3de1b149dd2ef0ccc3da38a4,
add a version guard in addition to the ISOC2X check.
2023-10-16 22:43:28 +02:00
Jakub Konka
77443ac2b5 elf: skip tests on foreign architectures 2023-10-16 21:45:28 +02:00
Jakub Konka
78f2ae7f29
Merge pull request #17531 from moosichu/fix/frameworks
Fix some frameworks not linking macos
2023-10-16 20:45:04 +02:00
Jakub Konka
d2727b808c elf: fix 32bit build 2023-10-16 19:56:47 +02:00
Jakub Konka
e89155b565 elf: refactor logs 2023-10-16 19:33:06 +02:00
Jakub Konka
ee1c3c7058 elf: correctly copy and write out debug sections 2023-10-16 19:33:06 +02:00
Jakub Konka
b0e2c6323b elf: sort PT_LOAD by address in PHDR table
Turns out order matters as otherwise we face unexplainable
segfaults to do with improper page mapping in static environments
(dynamic environments seem unaffected).
2023-10-16 19:33:06 +02:00
Jakub Konka
6993b3e23e codegen: refactor .actual_got into .extern_got 2023-10-16 19:33:06 +02:00
Jakub Konka
d3b1c903dd elf: emit empty TLS phdr when linking against musl libc even if unneeded 2023-10-16 19:33:06 +02:00
Jakub Konka
5192a2fbbe elf: do not allocate zerofill segment in file offsets 2023-10-16 19:33:06 +02:00
Jakub Konka
17b8e8ab29 elf: sort the entire shdr table the usual way 2023-10-16 19:33:06 +02:00
Jakub Konka
46cf4c5d93 elf: sort phdr table 2023-10-16 19:33:06 +02:00
Jakub Konka
5423778f6f elf: add self-hosted tests 2023-10-16 19:33:06 +02:00
Jakub Konka
7b2cbcf0fe codegen+elf: check if extern is a variable ref 2023-10-16 19:33:06 +02:00
Jakub Konka
45197ea7ad codegen+elf: lower imported data refs 2023-10-16 19:33:06 +02:00
Jakub Konka
c71a79f618 elf: make .zig.rodata writeable 2023-10-16 19:33:06 +02:00