#How I can see a complete list of available targets?

1 messages · Page 1 of 1 (latest)

empty oyster
#

I want to find the targets for macos, I want to know which I should use for making a x86_64 build, an arm64 build and an universal build with support for both x86_64 and arm64

wide roost
#

zig targets outputs a JSON object that lists all supported targets

empty oyster
#

uhm, it's a quite big output

#

I can't find what I should use for a mac universal build

quartz sequoia
#

there is no such target at the moment

wide roost
#

True. For now you can build for x86_64 and arm separately and make a UB with lipo on mac.
If you're having trouble browsing the output of the command, jq can make it a little easier to navigate.