aboutsummaryrefslogtreecommitdiff
path: root/lib/std/build.zig
AgeCommit message (Collapse)Author
2019-11-05zig build: addIncludeDir does -I instead of -isystemAndrew Kelley
2019-10-24get rid of std.os.foo.is_the_targetAndrew Kelley
It had the downside of running all the comptime blocks and resolving all the usingnamespaces of each system, when just trying to discover if the current system is a particular one. For Darwin, where it's nice to use `std.Target.current.isDarwin()`, this demonstrates the utility that #425 would provide.
2019-10-23move types from builtin to stdAndrew Kelley
* 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.
2019-10-21Merge branch 'stratact-no-dir-allocators'Andrew Kelley
closes #2885 closes #2886 closes #2888 closes #3249
2019-10-19Use 8192 sized buffers and remove allocator parametersstratact
2019-10-18std/build: make subsystem configurableNick Erdmann
2019-10-09zig build: bump default max exec output size to 400 KBAndrew Kelley
closes #3415
2019-10-08stage1: enable PIC for libuserlandAndrew Kelley
we don't really have a way to determine whether the stage1 zig compiler requires PIC so to be safe we always enable it when building libuserland. fixes build on some configurations of alpine linux.
2019-10-03zig build: fix exe file ext to match target.cppAndrew Kelley
2019-09-25remove --override-std-dir. fix issues caused by moving std libAndrew Kelley
2019-09-25mv std/ lib/Andrew Kelley
that's all this commit does. further commits will fix cli flags and such. see #2221