Zig Version
0.16.0-dev.3013+abd131e33
Steps to Reproduce and Observed Behavior
conststd=@import("std");pubfnbuild(b:*std.Build)void{vartarget=b.standardTargetOptions(.{});target.query.dynamic_linker=.init("anything");constroot_module=b.createModule(.{.target=target,.optimize=.Debug,.root_source_file=b.addWriteFiles().add("main.zig","pub fn main() void {}"),});constexe=b.addExecutable(.{.name="test",.root_module=root_module,.linkage=.dynamic,});b.installArtifact(exe);}run zig build --verbose
install
└─ install test
└─ compile exe test Debug native-native failure
error: error: expected a positional argument, -femit-bin=[path], --show-builtin, or --name [name]
error: process exited with error code 1
failed command: "C:\\Users\\johan\\.zvm\\master\\zig.exe" build-exe -ODebug -target native-native -mcpu native --dynamic-linker "@s337円377円260円" "-Mroot=.zig-cache\\o\\e0881ee06b059e32a15215589058da80\\main.zig" --cache-dir .zig-cache --global-cache-dir "C:\\Users\\johan\\AppData\\Local\\zig" --name test --zig-lib-dir "C:\\Users\\johan\\.zvm\\master\\lib\\" --listen=-
Build Summary: 1/4 steps succeeded (1 failed)
install transitive failure
└─ install test transitive failure
└─ compile exe test Debug native-native failure
error: the following build command failed with exit code 1:
.zig-cache\o2741円a197a953950b32668067d980991c\build.exe C:\Users\johan\.zvm\master\zig.exe C:\Users\johan\.zvm\master\lib C:\Users\johan\MyDocuments\git\text-buffer .zig-cache C:\Users\johan\AppData\Local\zig --seed 0x4c81a7e0 -Zc1bdaaa208c4b348 --verbose
notice --dynamic-linker "@s337円377円260円"
Expected Behavior
--dynamic-linker "anything"
### Zig Version
0.16.0-dev.3013+abd131e33
### Steps to Reproduce and Observed Behavior
```zig
const std = @import("std");
pub fn build(b: *std.Build) void {
var target = b.standardTargetOptions(.{});
target.query.dynamic_linker = .init("anything");
const root_module = b.createModule(.{
.target = target,
.optimize = .Debug,
.root_source_file = b.addWriteFiles().add("main.zig", "pub fn main() void {}"),
});
const exe = b.addExecutable(.{
.name = "test",
.root_module = root_module,
.linkage = .dynamic,
});
b.installArtifact(exe);
}
```
run `zig build --verbose`
```
install
└─ install test
└─ compile exe test Debug native-native failure
error: error: expected a positional argument, -femit-bin=[path], --show-builtin, or --name [name]
error: process exited with error code 1
failed command: "C:\\Users\\johan\\.zvm\\master\\zig.exe" build-exe -ODebug -target native-native -mcpu native --dynamic-linker "@s337円377円260円" "-Mroot=.zig-cache\\o\\e0881ee06b059e32a15215589058da80\\main.zig" --cache-dir .zig-cache --global-cache-dir "C:\\Users\\johan\\AppData\\Local\\zig" --name test --zig-lib-dir "C:\\Users\\johan\\.zvm\\master\\lib\\" --listen=-
Build Summary: 1/4 steps succeeded (1 failed)
install transitive failure
└─ install test transitive failure
└─ compile exe test Debug native-native failure
error: the following build command failed with exit code 1:
.zig-cache\o2741円a197a953950b32668067d980991c\build.exe C:\Users\johan\.zvm\master\zig.exe C:\Users\johan\.zvm\master\lib C:\Users\johan\MyDocuments\git\text-buffer .zig-cache C:\Users\johan\AppData\Local\zig --seed 0x4c81a7e0 -Zc1bdaaa208c4b348 --verbose
```
notice `--dynamic-linker "@s337円377円260円"`
### Expected Behavior
`--dynamic-linker "anything"`