@@ -46,7 +46,7 @@ For other versions, check the git tags of this repository.
46
46
47
47
All parameters are required:
48
48
49
- * ` <arch>-<os>-<abi> ` : Replace with one of the Supported Triples below, or use
49
+ * ` <arch>-<os>-<abi> ` : Replace with one of the Supported Targets below, or use
50
50
` native ` for the ` <arch> ` value (e.g. ` native-linux-gnu ` ) to use the native
51
51
architecture.
52
52
* ` <mcpu> ` : Replace with a ` -mcpu ` parameter of Zig. ` baseline ` is recommended
@@ -62,7 +62,7 @@ significantly affect how long it takes to build:
62
62
systems (such as make) which do not default to parallel builds. This option
63
63
is irrelevant when using Ninja.
64
64
65
- When it succeeds, output can be found in ` out/zig-<triple >-<cpu>/ ` .
65
+ When it succeeds, output can be found in ` out/zig-<target >-<cpu>/ ` .
66
66
67
67
## Windows Build Instructions
68
68
@@ -80,7 +80,7 @@ build.bat <arch>-<os>-<abi> <mcpu>
80
80
81
81
To build for x86 Windows, run the script within the ` x86 Native Tools Command Prompt for VS 2019 ` .
82
82
83
- ### Supported Triples
83
+ ### Supported Targets
84
84
85
85
If you try a "not tested" one and find a problem please file an issue,
86
86
and a pull request linking to the issue in the table.
@@ -95,77 +95,119 @@ Note: Generally, for Linux targets, we prefer the musl libc builds over the
95
95
glibc builds here, because musl builds end up producing a static binary, which
96
96
is more portable across Linux distributions.
97
97
98
- | triple | support status |
99
- | -----------------------------| ----------------|
100
- | ` aarch64-linux-gnu ` | OK |
101
- | ` aarch64-linux-musl ` | OK |
102
- | ` aarch64-macos-none ` | OK |
103
- | ` aarch64-windows-gnu ` | OK |
104
- | ` aarch64_be-linux-gnu ` | OK |
105
- | ` aarch64_be-linux-musl ` | OK |
106
- | ` arm-linux-gnueabi ` | OK |
107
- | ` arm-linux-gnueabihf ` | OK |
108
- | ` arm-linux-musleabi ` | OK |
109
- | ` arm-linux-musleabihf ` | OK |
110
- | ` armeb-linux-gnueabi ` | OK |
111
- | ` armeb-linux-gnueabihf ` | OK |
112
- | ` armeb-linux-musleabi ` | OK |
113
- | ` armeb-linux-musleabihf ` | OK |
98
+ #### FreeBSD
99
+
100
+ ** Note:** You currently need to use ` freebsd.14.0 ` or later, not just ` freebsd ` .
101
+
102
+ | Target | Status |
103
+ | ----------------------------| --------|
104
+ | ` aarch64-freebsd-none ` | OK |
105
+ | ` arm-freebsd-eabihf ` | [ #235 ] ( https://github.com/ziglang/zig-bootstrap/issues/235 ) |
106
+ | ` powerpc64-freebsd-none ` | OK |
107
+ | ` powerpc64le-freebsd-none ` | OK |
108
+ | ` riscv64-freebsd-none ` | OK |
109
+ | ` x86_64-freebsd-none ` | OK |
110
+
111
+ #### Linux
112
+
113
+ | Target | Status |
114
+ | -----------------------------| --------|
115
+ | ` aarch64-linux-gnu ` | OK |
116
+ | ` aarch64-linux-musl ` | OK |
117
+ | ` aarch64_be-linux-gnu ` | OK |
118
+ | ` aarch64_be-linux-musl ` | OK |
119
+ | ` arm-linux-gnueabi ` | OK |
120
+ | ` arm-linux-gnueabihf ` | OK |
121
+ | ` arm-linux-musleabi ` | OK |
122
+ | ` arm-linux-musleabihf ` | OK |
123
+ | ` armeb-linux-gnueabi ` | OK |
124
+ | ` armeb-linux-gnueabihf ` | OK |
125
+ | ` armeb-linux-musleabi ` | OK |
126
+ | ` armeb-linux-musleabihf ` | OK |
114
127
| ` hexagon-linux-musl ` | [ #215 ] ( https://github.com/ziglang/zig-bootstrap/issues/215 ) |
115
- | ` loongarch64-linux-gnu ` | OK |
116
- | ` loongarch64-linux-gnusf ` | OK |
117
- | ` loongarch64-linux-musl ` | OK |
118
- | ` mips-linux-gnueabi ` | OK |
119
- | ` mips-linux-gnueabihf ` | OK |
120
- | ` mips-linux-musleabi ` | OK |
121
- | ` mips-linux-musleabihf ` | OK |
122
- | ` mips64-linux-gnuabi64 ` | OK |
123
- | ` mips64-linux-gnuabin32 ` | OK |
124
- | ` mips64-linux-muslabi64 ` | OK |
125
- | ` mips64-linux-muslabin32 ` | OK |
126
- | ` mips64el-linux-gnuabi64 ` | OK |
128
+ | ` loongarch64-linux-gnu ` | OK |
129
+ | ` loongarch64-linux-gnusf ` | OK |
130
+ | ` loongarch64-linux-musl ` | OK |
131
+ | ` mips-linux-gnueabi ` | OK |
132
+ | ` mips-linux-gnueabihf ` | OK |
133
+ | ` mips-linux-musleabi ` | OK |
134
+ | ` mips-linux-musleabihf ` | OK |
135
+ | ` mips64-linux-gnuabi64 ` | OK |
136
+ | ` mips64-linux-gnuabin32 ` | OK |
137
+ | ` mips64-linux-muslabi64 ` | OK |
138
+ | ` mips64-linux-muslabin32 ` | OK |
139
+ | ` mips64el-linux-gnuabi64 ` | OK |
127
140
| ` mips64el-linux-gnuabin32 ` | [ #214 ] ( https://github.com/ziglang/zig-bootstrap/issues/214 ) |
128
- | ` mips64el-linux-muslabi64 ` | OK |
129
- | ` mips64el-linux-muslabin32 ` | OK |
130
- | ` mipsel-linux-gnueabi ` | OK |
131
- | ` mipsel-linux-gnueabihf ` | OK |
132
- | ` mipsel-linux-musleabi ` | OK |
133
- | ` mipsel-linux-musleabihf ` | OK |
134
- | ` powerpc-linux-gnueabi ` | OK |
135
- | ` powerpc-linux-gnueabihf ` | OK |
136
- | ` powerpc-linux-musleabi ` | OK |
137
- | ` powerpc-linux-musleabihf ` | OK |
141
+ | ` mips64el-linux-muslabi64 ` | OK |
142
+ | ` mips64el-linux-muslabin32 ` | OK |
143
+ | ` mipsel-linux-gnueabi ` | OK |
144
+ | ` mipsel-linux-gnueabihf ` | OK |
145
+ | ` mipsel-linux-musleabi ` | OK |
146
+ | ` mipsel-linux-musleabihf ` | OK |
147
+ | ` powerpc-linux-gnueabi ` | OK |
148
+ | ` powerpc-linux-gnueabihf ` | OK |
149
+ | ` powerpc-linux-musleabi ` | OK |
150
+ | ` powerpc-linux-musleabihf ` | OK |
138
151
| ` powerpc64-linux-gnu ` | [ #113 ] ( https://github.com/ziglang/zig-bootstrap/issues/113 ) |
139
- | ` powerpc64-linux-musl ` | OK |
140
- | ` powerpc64le-linux-gnu ` | OK |
141
- | ` powerpc64le-linux-musl ` | OK |
142
- | ` riscv32-linux-gnu ` | OK |
143
- | ` riscv32-linux-musl ` | OK |
144
- | ` riscv64-linux-gnu ` | OK |
145
- | ` riscv64-linux-musl ` | OK |
146
- | ` s390x-linux-gnu ` | OK |
147
- | ` s390x-linux-musl ` | OK |
152
+ | ` powerpc64-linux-musl ` | OK |
153
+ | ` powerpc64le-linux-gnu ` | OK |
154
+ | ` powerpc64le-linux-musl ` | OK |
155
+ | ` riscv32-linux-gnu ` | OK |
156
+ | ` riscv32-linux-musl ` | OK |
157
+ | ` riscv64-linux-gnu ` | OK |
158
+ | ` riscv64-linux-musl ` | OK |
159
+ | ` s390x-linux-gnu ` | OK |
160
+ | ` s390x-linux-musl ` | OK |
148
161
| ` sparc-linux-gnu ` | [ #117 ] ( https://github.com/ziglang/zig-bootstrap/issues/117 ) |
149
162
| ` sparc64-linux-gnu ` | [ #172 ] ( https://github.com/ziglang/zig-bootstrap/issues/172 ) |
150
- | ` thumb-linux-musleabi ` | OK |
151
- | ` thumb-linux-musleabihf ` | OK |
152
- | ` thumb-windows-gnu ` | OK |
153
- | ` thumbeb-linux-musleabi ` | OK |
154
- | ` thumbeb-linux-musleabihf ` | OK |
155
- | ` x86-linux-gnu ` | OK |
156
- | ` x86-linux-musl ` | OK |
157
- | ` x86-windows-gnu ` | OK |
158
- | ` x86_64-freebsd-none ` | [ #45 ] ( https://github.com/ziglang/bootstrap/issues/45 ) |
159
- | ` x86_64-linux-gnu ` | OK |
160
- | ` x86_64-linux-gnux32 ` | OK |
161
- | ` x86_64-linux-musl ` | OK |
162
- | ` x86_64-linux-muslx32 ` | OK |
163
- | ` x86_64-macos-none ` | OK |
164
- | ` x86_64-netbsd-none ` | [ #71 ] ( https://github.com/ziglang/zig-bootstrap/issues/71 ) |
165
- | ` x86_64-windows-gnu ` | OK |
166
-
167
- #### Other Notable Targets Known to Work
168
-
169
- * ` arm-linux-musleabi ` with mcpu value of ` generic+v6kz ` . This produces a
170
- build of Zig that runs on the RPi 1 and RPi Zero.
171
- - If you want to produce a build for this CPU exactly, use ` arm1176jzf_s ` .
163
+ | ` thumb-linux-musleabi ` | OK |
164
+ | ` thumb-linux-musleabihf ` | OK |
165
+ | ` thumbeb-linux-musleabi ` | OK |
166
+ | ` thumbeb-linux-musleabihf ` | OK |
167
+ | ` x86-linux-gnu ` | OK |
168
+ | ` x86-linux-musl ` | OK |
169
+ | ` x86_64-linux-gnu ` | OK |
170
+ | ` x86_64-linux-gnux32 ` | OK |
171
+ | ` x86_64-linux-musl ` | OK |
172
+ | ` x86_64-linux-muslx32 ` | OK |
173
+
174
+ #### macOS
175
+
176
+ | Target | Status |
177
+ | ----------------------| --------|
178
+ | ` aarch64-macos-none ` | OK |
179
+ | ` x86_64-macos-none ` | OK |
180
+
181
+ #### NetBSD
182
+
183
+ ** Note:** You currently need to use ` netbsd.10.1 ` or later, not just ` netbsd ` .
184
+
185
+ | Target | Status |
186
+ | --------------------------| --------|
187
+ | ` aarch64-netbsd-none ` | [ #218 ] ( https://github.com/ziglang/zig-bootstrap/issues/218 ) |
188
+ | ` aarch64_be-netbsd-none ` | [ #219 ] ( https://github.com/ziglang/zig-bootstrap/issues/219 ) |
189
+ | ` arm-netbsd-eabi ` | [ #220 ] ( https://github.com/ziglang/zig-bootstrap/issues/220 ) |
190
+ | ` arm-netbsd-eabihf ` | [ #221 ] ( https://github.com/ziglang/zig-bootstrap/issues/221 ) |
191
+ | ` armeb-netbsd-eabi ` | [ #222 ] ( https://github.com/ziglang/zig-bootstrap/issues/222 ) |
192
+ | ` armeb-netbsd-eabihf ` | [ #223 ] ( https://github.com/ziglang/zig-bootstrap/issues/223 ) |
193
+ | ` mips-netbsd-eabi ` | [ #224 ] ( https://github.com/ziglang/zig-bootstrap/issues/224 ) |
194
+ | ` mips-netbsd-eabihf ` | [ #225 ] ( https://github.com/ziglang/zig-bootstrap/issues/225 ) |
195
+ | ` mipsel-netbsd-eabi ` | [ #226 ] ( https://github.com/ziglang/zig-bootstrap/issues/226 ) |
196
+ | ` mipsel-netbsd-eabihf ` | [ #227 ] ( https://github.com/ziglang/zig-bootstrap/issues/227 ) |
197
+ | ` powerpc-netbsd-eabi ` | [ #228 ] ( https://github.com/ziglang/zig-bootstrap/issues/228 ) |
198
+ | ` powerpc-netbsd-eabihf ` | [ #229 ] ( https://github.com/ziglang/zig-bootstrap/issues/229 ) |
199
+ | ` riscv32-netbsd-none ` | [ #233 ] ( https://github.com/ziglang/zig-bootstrap/issues/233 ) |
200
+ | ` riscv64-netbsd-none ` | [ #234 ] ( https://github.com/ziglang/zig-bootstrap/issues/234 ) |
201
+ | ` sparc-netbsd-none ` | [ #230 ] ( https://github.com/ziglang/zig-bootstrap/issues/230 ) |
202
+ | ` sparc64-netbsd-none ` | [ #231 ] ( https://github.com/ziglang/zig-bootstrap/issues/231 ) |
203
+ | ` x86-netbsd-none ` | [ #232 ] ( https://github.com/ziglang/zig-bootstrap/issues/232 ) |
204
+ | ` x86_64-netbsd-none ` | [ #71 ] ( https://github.com/ziglang/zig-bootstrap/issues/71 ) |
205
+
206
+ #### Windows
207
+
208
+ | Target | Status |
209
+ | -----------------------| --------|
210
+ | ` aarch64-windows-gnu ` | OK |
211
+ | ` thumb-windows-gnu ` | OK |
212
+ | ` x86-windows-gnu ` | OK |
213
+ | ` x86_64-windows-gnu ` | OK |
0 commit comments