zig/lib/std/os
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
..
bits remove uses of @ArgType and @IntType 2020-02-24 23:39:03 +02:00
linux update tls in std lib for lack of sub-arch 2020-02-19 22:09:35 -05:00
uefi Merge branch 'std-utf16-sentinel-terminated' of https://github.com/daurnimator/zig 2020-01-07 16:13:34 -05:00
windows improve handling of environment variables on Windows 2020-02-22 17:35:36 -05:00
bits.zig introduce operating system version ranges as part of the target 2020-02-28 14:51:53 -05:00
darwin.zig get rid of std.os.foo.is_the_target 2019-10-24 01:14:52 -04:00
dragonfly.zig DragonFlyBSD support 2019-10-30 21:21:58 -04:00
freebsd.zig get rid of std.os.foo.is_the_target 2019-10-24 01:14:52 -04:00
linux.zig introduce operating system version ranges as part of the target 2020-02-28 14:51:53 -05:00
netbsd.zig get rid of std.os.foo.is_the_target 2019-10-24 01:14:52 -04:00
test.zig introduce operating system version ranges as part of the target 2020-02-28 14:51:53 -05:00
uefi.zig Run zig fmt 2020-02-01 11:32:53 +01:00
wasi.zig Removes proc_raise from WASI implementation 2020-01-06 14:04:55 -05:00
windows.zig more std lib async I/O integration 2020-02-06 18:05:50 -05:00