zig/lib/std/c
Andrew Kelley 4616af0ca4
introduce operating system version ranges as part of the target
* re-introduce `std.build.Target` which is distinct from `std.Target`.
   `std.build.Target` wraps `std.Target` so that it can be annotated as
   "the native target" or an explicitly specified target.
 * `std.Target.Os` is moved to `std.Target.Os.Tag`. The former is now a
   struct which has the tag as well as version range information.
 * `std.elf` gains some more ELF header constants.
 * `std.Target.parse` gains the ability to parse operating system
   version ranges as well as glibc version.
 * Added `std.Target.isGnuLibC()`.
 * self-hosted dynamic linker detection and glibc version detection.
   This also adds the improved logic using `/usr/bin/env` rather than
   invoking the system C compiler to find the dynamic linker when zig
   is statically linked. Related: #2084
   Note: this `/usr/bin/env` code is work-in-progress.
 * `-target-glibc` CLI option is removed in favor of the new `-target`
   syntax. Example: `-target x86_64-linux-gnu.2.27`

closes #1907
2020-02-28 14:51:53 -05:00
..
ast.zig std-c add todos to unfinished parsing functioins 2020-01-29 12:12:28 +02:00
darwin.zig Unify the two DWARF interpreters 2020-01-27 09:46:20 -05:00
dragonfly.zig fixups and zig fmt 2019-11-08 01:52:23 -05:00
emscripten.zig fixups and zig fmt 2019-11-08 01:52:23 -05:00
freebsd.zig std: turn EAI_ constants into a non-exhaustive enum 2020-01-18 17:46:44 -05:00
fuchsia.zig fixups and zig fmt 2019-11-08 01:52:23 -05:00
haiku.zig fixups and zig fmt 2019-11-08 01:52:23 -05:00
hermit.zig fix casts 2019-12-05 15:47:06 -05:00
linux.zig introduce operating system version ranges as part of the target 2020-02-28 14:51:53 -05:00
minix.zig fixups and zig fmt 2019-11-08 01:52:23 -05:00
netbsd.zig fixups and zig fmt 2019-11-08 01:52:23 -05:00
openbsd.zig fixups and zig fmt 2019-11-08 01:52:23 -05:00
parse.zig Run zig fmt 2020-02-01 11:32:53 +01:00
solaris.zig fixups and zig fmt 2019-11-08 01:52:23 -05:00
tokenizer.zig fix c tokenizer bug 2020-02-14 18:57:57 -05:00
windows.zig mv std/ lib/ 2019-09-25 23:35:41 -04:00