diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2024-04-17 17:57:03 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2024-04-18 03:02:13 -0700 |
| commit | 22a97cd235b5a2ffa9882c267b365c463b38e5ba (patch) | |
| tree | 82f9feca1f1f9b276953d0d0a8a45c3130e475f9 /lib/std/Build/Step/Compile.zig | |
| parent | 21a6a1b0f2d7241594a9aa123e48cf2e3ebaccb9 (diff) | |
| download | zig-22a97cd235b5a2ffa9882c267b365c463b38e5ba.tar.gz zig-22a97cd235b5a2ffa9882c267b365c463b38e5ba.zip | |
std.Build: revert --host-target, --host-cpu, --host-dynamic-linker
This is a partial revert of 105db13536b4dc2affe130cb8d2eee6c97c89bcd.
As we learned from Void Linux packaging, these options are not actually
helpful since the distribution package manager may very well want to
cross-compile the packages that it is building.
So, let's not overcomplicate things. There are already the standard
options: -Dtarget, -Dcpu, and -Ddynamic-linker.
These options are generally provided when the project generates machine
code artifacts, however, there may be a project that does no such thing,
in which case it makes sense for these options to be missing. The Zig
Build System is a general-purpose build system, after all.
Diffstat (limited to 'lib/std/Build/Step/Compile.zig')
| -rw-r--r-- | lib/std/Build/Step/Compile.zig | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/lib/std/Build/Step/Compile.zig b/lib/std/Build/Step/Compile.zig index c36fd8c4ca..9e94b78d6c 100644 --- a/lib/std/Build/Step/Compile.zig +++ b/lib/std/Build/Step/Compile.zig @@ -1011,16 +1011,6 @@ fn make(step: *Step, prog_node: *std.Progress.Node) !void { }; try zig_args.append(cmd); - if (!mem.eql(u8, b.graph.host_query_options.arch_os_abi, "native")) { - try zig_args.appendSlice(&.{ "--host-target", b.graph.host_query_options.arch_os_abi }); - } - if (b.graph.host_query_options.cpu_features) |cpu| { - try zig_args.appendSlice(&.{ "--host-cpu", cpu }); - } - if (b.graph.host_query_options.dynamic_linker) |dl| { - try zig_args.appendSlice(&.{ "--host-dynamic-linker", dl }); - } - if (b.reference_trace) |some| { try zig_args.append(try std.fmt.allocPrint(arena, "-freference-trace={d}", .{some})); } |
