lynn
1
I’m seeing a lot of resources mention i386-freestanding
zig build-exe kernel/kmain.zig -femit-bin -fno-entry -target i386-freestanding
using 14 devel this returns:
error: unable to parse target query 'i386-freestanding': UnknownArchitecture
has this changed recently? or been removed?
dimdin
2
The target is x86-freestanding
.
zig targets
displays a json file with everything related to targets.
zig targets | jq -r .arch
displays the architectures:
[
"arm",
"armeb",
"aarch64",
"aarch64_be",
"aarch64_32",
...
"thumb",
"thumbeb",
"x86",
"x86_64",
...
"wasm32",
"wasm64",
"renderscript32",
"renderscript64",
"ve",
"spu_2"
]
2 Likes