Commit graph

6834 commits

Author SHA1 Message Date
Robin Voetter
cb9e20da00
spirv: element-wise operation helper 2024-02-04 19:09:00 +01:00
Robin Voetter
747f4ae3f5
spirv: sh[rl](_exact)? 2024-02-04 19:08:59 +01:00
Andrew Kelley
d3fc2648cc
Merge pull request #18778 from ziglang/system-package-mode
Implement system package mode and lazy dependencies
2024-02-04 01:44:12 -08:00
Jakub Konka
9bf97b8494
Merge pull request #18793 from ziglang/macho-zig-object
macho: emit relocatable with self-hosted x86_64 backend
2024-02-04 09:12:59 +01:00
David Rubin
122387943b
Fix OOB when enum field out of order in different file 2024-02-03 19:52:05 +00:00
David Rubin
eb4024036d
Add error hint when looping over ErrorUnion 2024-02-03 19:16:27 +00:00
Jakub Konka
ca86dc61dd test/link/macho: test for signals only when running on the host 2024-02-03 19:36:52 +01:00
Jakub Konka
4ebd0036fd test/link/macho: add some smoke tests for self-hosted MachO 2024-02-03 17:57:35 +01:00
Andrew Kelley
105db13536 std.Build: implement --host-target, --host-cpu, --host-dynamic-linker
This also makes a long-overdue change of extracting common state from
Build into a shared Graph object.

Getting the semantics right for these flags turned out to be quite
tricky. In the end it works like this:
* The override only happens when the target is fully native, with no
  additional query parameters, such as versions or CPU features added.
* The override affects the resolved Target but leaves the original Query
  unmodified.
* The "is native?" detection logic operates on the original, unmodified
  query. This makes it possible to provide invalid host target
  information, causing confusing errors to occur. Don't do that.

There are some minor breaking changes to std.Build API such as the fact
that `b.zig_exe` is now moved to `b.graph.zig_exe`, as well as a handful
of other similar flags.
2024-02-02 20:43:01 -07:00
Jakub Konka
92deebcd66 cli+build: handle -ObjC flag and route it to MachO linker 2024-02-02 22:00:16 +01:00
Veikka Tuominen
07dbff4f44 std.start: remove event loop integration 2024-02-01 15:22:36 +02:00
Veikka Tuominen
220d3264c9 std: make options a struct instance instead of a namespace 2024-02-01 15:22:36 +02:00
danielsan901998
d7a27bf803 Use mem.zeroes for empty union initializer list 2024-01-31 06:38:44 +02:00
Jakub Konka
f63f4508d2 macho: fix parsing versions from TBDs if parsed as floats 2024-01-30 20:56:20 +01:00
Jakub Konka
b8490c05c1 macho: improve weak-ref symbols handling 2024-01-30 13:56:08 +01:00
Pavel Verigo
a2ad8517ee
Sema: fix union init with zero size field 2024-01-30 12:20:23 +02:00
Veikka Tuominen
7d75c3d3b8 llvm: ensure returned undef is 0xaa bytes when runtime safety is enabled
Closes #13178
2024-01-29 17:35:07 -08:00
SuperAuguste
a479fd3132 Fix some comptime packed struct issues
Co-authored-by: Veikka Tuominen <git@vexu.eu>
2024-01-29 13:09:17 -08:00
Andrew Kelley
f4f8036ec0
Merge pull request #18729 from Vexu/fixes
Fix some generic{Reader,Writer} related issues
2024-01-29 13:07:37 -08:00
Veikka Tuominen
f93a36c091 llvm: revert bad array access optimization
Closes #18723
2024-01-29 08:43:27 -08:00
Veikka Tuominen
78e982f7c3 llvm: fix alignment of array ptr when bitcasting vector
Closes #17996
2024-01-29 13:51:57 +02:00
Veikka Tuominen
281b2695c4 Value: expand canMutateComptimeVarState
Closes #17761
2024-01-29 13:48:45 +02:00
Veikka Tuominen
f782202910 Sema: do not emit @errorCast safety check when dest is adhoc inferred error set
Closes #17354
2024-01-29 13:48:45 +02:00
Pavel Verigo
96a5f7c8ed Sema: fix casting runtime value to enum with comptime int tag type 2024-01-29 01:43:19 +02:00
MrDmitry
3e6f07e617 Add escaped character processing 2024-01-26 13:33:17 -05:00
MrDmitry
0307f87715 Remove unused test file 2024-01-26 13:33:17 -05:00
MrDmitry
2ce32e4497 Extend standalone tests for cmakedefine 2024-01-26 13:33:17 -05:00
Meghan Denny
8a0429e885
test: add behavior coverage for global setter in function liveness 2024-01-26 15:26:37 +02:00
Tobias Simetsreiter
20abf1394a align naming and fix module creation from TranslateC 2024-01-26 15:25:52 +02:00
Krzysztof Wolicki
61ba225709
Sema: tuples have no names to be used for reporting errors in finishStructInit 2024-01-26 15:22:15 +02:00
Jakub Konka
d726538494 test/link/macho: ensure we do not run testStackSize on foreign host 2024-01-24 12:34:42 +01:00
Jakub Konka
03b33b0f01 test/link/macho: migrate all tests to the new test matrix 2024-01-24 12:34:40 +01:00
Jakub Konka
2b3ac3e82f test/link/macho: upgrade tbdv3 test 2024-01-24 12:34:40 +01:00
Jakub Konka
a3f68c6fa2 test/link/macho: upgrade unwind info tests 2024-01-24 12:34:40 +01:00
Jakub Konka
d500caaa62 test/link/macho: test stacksize option 2024-01-24 12:34:40 +01:00
Jakub Konka
b70fedee7e test/link/macho: upgrade search strategy test 2024-01-24 12:34:40 +01:00
Jakub Konka
933231868a test/link/macho: test re-exports in zig 2024-01-24 12:34:40 +01:00
Jakub Konka
7dc6900018 test/link/macho: remove converted standalone tests 2024-01-24 12:34:40 +01:00
Jakub Konka
7bb323c0eb test/link/macho: test pagezero size 2024-01-24 12:34:40 +01:00
Jakub Konka
5c8acc551d test/link/macho: revert testing objc msgsend stubs - no way of enabling in clang 2024-01-24 12:34:40 +01:00
Jakub Konka
000598acc9 test/link/macho: test objc msgsend selector stubs 2024-01-24 12:34:40 +01:00
Jakub Konka
3d835dea2a test/link/macho: use .root_module. instead of wrappers where possible 2024-01-24 12:34:40 +01:00
Jakub Konka
abeb0e3ea4 test/link/macho: test force-loading objects containing ObjC from archives 2024-01-24 12:34:40 +01:00
Jakub Konka
7c65f0be37 test/link/macho: test no exports in a dylib 2024-01-24 12:34:40 +01:00
Jakub Konka
4cf94bb148 test/link/macho: test attribute "used" on vars in presence of dead_strip 2024-01-24 12:34:40 +01:00
Jakub Konka
4dc1907a88 test/link/macho: upgrade strict validation of layout test 2024-01-24 12:34:40 +01:00
Jakub Konka
a25b780aad test/link/macho: upgrade entry and entry in archive tests 2024-01-24 12:34:40 +01:00
Jakub Konka
82a044f4f7 test/link/macho: upgrade empty object test 2024-01-24 12:34:40 +01:00
Jakub Konka
a454ba7908 test/link/macho: upgrade dylib test 2024-01-24 12:34:40 +01:00
Jakub Konka
8105390fff macho: remove all rpath parsing from the linker 2024-01-24 12:34:40 +01:00