@@ -327,54 +327,105 @@ This works on any Tier 3+ target, for any Tier 3+ target.
327
327
You can find the available libc targets with `zig targets`:
328
328
```
329
329
...
330
- "libc": [
331
- "aarch64_be-linux-gnu",
332
- "aarch64_be-linux-musl",
333
- "aarch64_be-windows-gnu",
334
- "aarch64-linux-gnu",
335
- "aarch64-linux-musl",
336
- "aarch64-windows-gnu",
337
- "armeb-linux-gnueabi",
338
- "armeb-linux-gnueabihf",
339
- "armeb-linux-musleabi",
340
- "armeb-linux-musleabihf",
341
- "armeb-windows-gnu",
330
+ .libc = .{
331
+ "arc-linux-gnu",
332
+ "arm-freebsd-eabihf",
342
333
"arm-linux-gnueabi",
343
334
"arm-linux-gnueabihf",
344
335
"arm-linux-musleabi",
345
336
"arm-linux-musleabihf",
346
- "arm-windows-gnu",
347
- "mips64el-linux-gnuabi64",
348
- "mips64el-linux-gnuabin32",
349
- "mips64el-linux-musl",
337
+ "arm-netbsd-eabi",
338
+ "arm-netbsd-eabihf",
339
+ "armeb-linux-gnueabi",
340
+ "armeb-linux-gnueabihf",
341
+ "armeb-linux-musleabi",
342
+ "armeb-linux-musleabihf",
343
+ "armeb-netbsd-eabi",
344
+ "armeb-netbsd-eabihf",
345
+ "thumb-linux-musleabi",
346
+ "thumb-linux-musleabihf",
347
+ "thumb-windows-gnu",
348
+ "thumbeb-linux-musleabi",
349
+ "thumbeb-linux-musleabihf",
350
+ "aarch64-freebsd-none",
351
+ "aarch64-linux-gnu",
352
+ "aarch64-linux-musl",
353
+ "aarch64-macos-none",
354
+ "aarch64-netbsd-none",
355
+ "aarch64-windows-gnu",
356
+ "aarch64_be-linux-gnu",
357
+ "aarch64_be-linux-musl",
358
+ "aarch64_be-netbsd-none",
359
+ "csky-linux-gnueabi",
360
+ "csky-linux-gnueabihf",
361
+ "hexagon-linux-musl",
362
+ "loongarch64-linux-gnu",
363
+ "loongarch64-linux-gnusf",
364
+ "loongarch64-linux-musl",
365
+ "loongarch64-linux-muslsf",
366
+ "m68k-linux-gnu",
367
+ "m68k-linux-musl",
368
+ "m68k-netbsd-none",
369
+ "mips-linux-gnueabi",
370
+ "mips-linux-gnueabihf",
371
+ "mips-linux-musleabi",
372
+ "mips-linux-musleabihf",
373
+ "mips-netbsd-eabi",
374
+ "mips-netbsd-eabihf",
375
+ "mipsel-linux-gnueabi",
376
+ "mipsel-linux-gnueabihf",
377
+ "mipsel-linux-musleabi",
378
+ "mipsel-linux-musleabihf",
379
+ "mipsel-netbsd-eabi",
380
+ "mipsel-netbsd-eabihf",
350
381
"mips64-linux-gnuabi64",
351
382
"mips64-linux-gnuabin32",
352
- "mips64-linux-musl",
353
- "mipsel-linux-gnu",
354
- "mipsel-linux-musl",
355
- "mips-linux-gnu",
356
- "mips-linux-musl",
357
- "powerpc64le-linux-gnu",
358
- "powerpc64le-linux-musl",
383
+ "mips64-linux-muslabi64",
384
+ "mips64-linux-muslabin32",
385
+ "mips64el-linux-gnuabi64",
386
+ "mips64el-linux-gnuabin32",
387
+ "mips64el-linux-muslabi64",
388
+ "mips64el-linux-muslabin32",
389
+ "powerpc-freebsd-eabihf",
390
+ "powerpc-linux-gnueabi",
391
+ "powerpc-linux-gnueabihf",
392
+ "powerpc-linux-musleabi",
393
+ "powerpc-linux-musleabihf",
394
+ "powerpc-netbsd-eabi",
395
+ "powerpc-netbsd-eabihf",
396
+ "powerpc64-freebsd-none",
359
397
"powerpc64-linux-gnu",
360
398
"powerpc64-linux-musl",
361
- "powerpc-linux-gnu",
362
- "powerpc-linux-musl",
399
+ "powerpc64le-freebsd-none",
400
+ "powerpc64le-linux-gnu",
401
+ "powerpc64le-linux-musl",
402
+ "riscv32-linux-gnu",
403
+ "riscv32-linux-musl",
404
+ "riscv64-freebsd-none",
363
405
"riscv64-linux-gnu",
364
406
"riscv64-linux-musl",
365
407
"s390x-linux-gnu",
366
408
"s390x-linux-musl",
367
409
"sparc-linux-gnu",
368
- "sparcv9-linux-gnu",
369
- "wasm32-freestanding-musl",
410
+ "sparc-netbsd-none",
411
+ "sparc64-linux-gnu",
412
+ "sparc64-netbsd-none",
413
+ "wasm32-wasi-musl",
414
+ "x86-freebsd-none",
370
415
"x86-linux-gnu",
371
416
"x86-linux-musl",
417
+ "x86-netbsd-none",
372
418
"x86-windows-gnu",
419
+ "x86_64-freebsd-none",
373
420
"x86_64-linux-gnu",
374
421
"x86_64-linux-gnux32",
375
422
"x86_64-linux-musl",
376
- "x86_64-windows-gnu"
377
- ],
423
+ "x86_64-linux-muslx32",
424
+ "x86_64-macos-none",
425
+ "x86_64-netbsd-none",
426
+ "x86_64-windows-gnu",
427
+ },
428
+ ...
378
429
```
379
430
380
431
What this means is that `--library c` for these targets *does not depend on any system files*!
0 commit comments