zig/test
Andrew Kelley dbe4d72bcf
separate std.Target and std.zig.CrossTarget
Zig now supports a more fine-grained sense of what is native and what is
not. Some examples:

This is now allowed:
-target native

Different OS but native CPU, default Windows C ABI:
-target native-windows
This could be useful for example when running in Wine.

Different CPU but native OS, native C ABI.
-target x86_64-native -mcpu=skylake

Different C ABI but otherwise native target:
-target native-native-musl
-target native-native-gnu

Lots of breaking changes to related std lib APIs.
Calls to getOs() will need to be changed to getOsTag().
Calls to getArch() will need to be changed to getCpuArch().

Usage of Target.Cross and Target.Native need to be updated to use
CrossTarget API.

`std.build.Builder.standardTargetOptions` is changed to accept its
parameters as a struct with default values. It now has the ability to
specify a whitelist of targets allowed, as well as the default target.
Rather than two different ways of collecting the target, it's now always
a string that is validated, and prints helpful diagnostics for invalid
targets. This feature should now be actually useful, and contributions
welcome to further improve the user experience.

`std.build.LibExeObjStep.setTheTarget` is removed.
`std.build.LibExeObjStep.setTarget` is updated to take a CrossTarget
parameter.

`std.build.LibExeObjStep.setTargetGLibC` is removed. glibc versions are
handled in the CrossTarget API and can be specified with the `-target`
triple.

`std.builtin.Version` gains a `format` method.
2020-02-28 14:51:54 -05:00
..
src separate std.Target and std.zig.CrossTarget 2020-02-28 14:51:54 -05:00
stage1 update std lib to new Target API 2020-02-28 14:51:54 -05:00
stage2
standalone
assemble_and_link.zig update std lib to new Target API 2020-02-28 14:51:54 -05:00
cli.zig
compare_output.zig
compile_errors.zig separate std.Target and std.zig.CrossTarget 2020-02-28 14:51:54 -05:00
gen_h.zig
run_translated_c.zig
runtime_safety.zig
stack_traces.zig update std lib to new Target API 2020-02-28 14:51:54 -05:00
standalone.zig update std lib to new Target API 2020-02-28 14:51:54 -05:00
tests.zig separate std.Target and std.zig.CrossTarget 2020-02-28 14:51:54 -05:00
translate_c.zig separate std.Target and std.zig.CrossTarget 2020-02-28 14:51:54 -05:00