0
Fork 0
mirror of https://codeberg.org/ziglang/zig synced 2026-11-18 07:05:05 +00:00
zig/test
Andrew Kelley 17eb24a7e4
move types from builtin to std
* All the data types from `@import("builtin")` are moved to
  `@import("std").builtin`. The target-related types are moved
  to `std.Target`. This allows the data types to have methods, such as
  `std.Target.current.isDarwin()`.
 * `std.os.windows.subsystem` is moved to
   `std.Target.current.subsystem`.
 * Remove the concept of the panic package from the compiler
   implementation. Instead, `std.builtin.panic` is always the panic
   function. It checks for `@hasDecl(@import("root"), "panic")`,
   or else provides a default implementation.

This is an important step for multibuilds (#3028). Without this change,
the types inside the builtin namespace look like different types, when
trying to merge builds with different target settings. With this change,
Zig can figure out that, e.g., `std.builtin.Os` (the enum type) from one
compilation and `std.builtin.Os` from another compilation are the same
type, even if the target OS value differs.
History 2019-10-23 19:09:49 -04:00
..
stage1 Prevent too eager constant-folding of switch expression 2019-10-19 13:48:26 -04:00
stage2 Recursive rewrite of stage2 parser, part 3 2019-05-12 02:01:45 -07:00
standalone Get more of the tests passing for FreeBSD (#3197) 2019-09-10 14:50:54 -04:00
assemble_and_link.zig use * for pointer type instead of & 2018-05-31 17:28:07 -04:00
cli.zig test runner: restore previous behavior of printing all tests passed 2019-10-21 22:21:18 -04:00
compare_output.zig std/fmt.zig: Pass full options struct to all internal functions 2019-08-19 22:15:15 +12:00
compile_errors.zig move types from builtin to std 2019-10-23 19:09:49 -04:00
gen_h.zig gen-h: do not output visibility macros when the build is static 2019-05-25 14:17:59 +02:00
runtime_safety.zig implement safety for resuming non-suspended function 2019-10-22 23:43:27 -04:00
stack_traces.zig test-stack-traces: add FreeBSD 2019-09-09 00:25:21 -04:00
standalone.zig retire the example/ folder, rename test-build-examples to "standalone" 2019-07-16 12:15:46 -04:00
tests.zig Fix cross-compilation to i386-windows-msvc 2019-10-11 15:52:55 -04:00
translate_c.zig fix escape sequence rendering 2019-07-23 14:49:19 -04:00