zig/test
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
..
behavior Sema: fix union init with zero size field 2024-01-30 12:20:23 +02:00
c_abi Correct expected/actual parameter order of some assertions 2024-01-03 21:20:49 +01:00
cases Use mem.zeroes for empty union initializer list 2024-01-31 06:38:44 +02:00
link cli+build: handle -ObjC flag and route it to MachO linker 2024-02-02 22:00:16 +01:00
src std.Build: implement --host-target, --host-cpu, --host-dynamic-linker 2024-02-02 20:43:01 -07:00
standalone Add escaped character processing 2024-01-26 13:33:17 -05:00
assemble_and_link.zig migrate from std.Target.current to @import("builtin").target 2021-10-04 23:48:55 -07:00
behavior.zig LLVM: fix lowering of extern anyopaque 2024-01-11 01:00:49 -08:00
cases.zig zig build system: change target, compilation, and module APIs 2024-01-01 17:51:18 -07:00
cbe.zig AstGen: detect duplicate field names 2024-01-20 17:23:47 +00:00
compare_output.zig test: update remaining code to fix 'var is never mutated' errors 2023-11-19 09:57:04 +00:00
compile_errors.zig zig build system: change target, compilation, and module APIs 2024-01-01 17:51:18 -07:00
gen_h.zig all: zig fmt and rename "@XToY" to "@YFromX" 2023-06-19 12:34:42 -07:00
link.zig test/link/macho: migrate all tests to the new test matrix 2024-01-24 12:34:40 +01:00
llvm_targets.zig rename std.zig.CrossTarget to std.Target.Query 2024-01-01 17:51:18 -07:00
nvptx.zig zig build system: change target, compilation, and module APIs 2024-01-01 17:51:18 -07:00
run_translated_c.zig tests: translate-c and run-translated-c to the test harness 2023-10-17 11:55:17 +03:00
stack_traces.zig test/stack_traces.zig: add err union switch case 2024-01-18 15:10:32 +11:00
standalone.zig remove tool: update-license-headers 2024-01-07 17:02:17 -07:00
tests.zig std.Build: implement --host-target, --host-cpu, --host-dynamic-linker 2024-02-02 20:43:01 -07:00
translate_c.zig rename std.zig.CrossTarget to std.Target.Query 2024-01-01 17:51:18 -07:00