0
Fork 0
mirror of https://codeberg.org/ziglang/zig synced 2026-11-18 07:05:05 +00:00
zig/std
Andrew Kelley 91955dee58
breaking changes to zig build API and improved caching
* in Zig build scripts, getOutputPath() is no longer a valid function
   to call, unless setOutputDir() was used, or within a custom make()
   function. Instead there is more convenient API to use which takes
   advantage of the caching system. Search this commit diff for
   `exe.run()` for an example.
 * Zig build by default enables caching. All build artifacts will go
   into zig-cache. If you want to access build artifacts in a convenient
   location, it is recommended to add an `install` step. Otherwise
   you can use the `run()` API mentioned above to execute programs
   directly from their location in the cache. Closes #330.
   `addSystemCommand` is available for programs not built with Zig
   build.
 * Please note that Zig does no cache evicting yet. You may have to
   manually delete zig-cache directories periodically to keep disk
   usage down. It's planned for this to be a simple Least Recently
   Used eviction system eventually.
 * `--output`, `--output-lib`, and `--output-h` are removed. Instead,
   use `--output-dir` which defaults to the current working directory.
   Or take advantage of `--cache on`, which will print the main output
   path to stdout, and the other artifacts will be in the same directory
   with predictable file names. `--disable-gen-h` is available when
   one wants to prevent .h file generation.
 * `@cImport` is always independently cached now. Closes #2015.
   It always writes the generated Zig code to disk which makes debug
   info and compile errors better. No more "TODO: remember C source
   location to display here"
 * Fix .d file parsing. (Fixes the MacOS CI failure)
 * Zig no longer creates "temporary files" other than inside a
   zig-cache directory.

This breaks the CLI API that Godbolt uses. The suggested new invocation
can be found in this commit diff, in the changes to `test/cli.zig`.
History 2019-03-08 23:23:11 -05:00
..
atomic rename std lib files to new convention 2019-03-02 16:46:04 -05:00
build rename std lib files to new convention 2019-03-02 16:46:04 -05:00
c rename std lib files to new convention 2019-03-02 16:46:04 -05:00
crypto rename std lib files to new convention 2019-03-02 16:46:04 -05:00
debug rename std lib files to new convention 2019-03-02 16:46:04 -05:00
event disable some tests until coroutine rewrite is finished 2019-03-07 16:11:00 -05:00
fmt rename std lib files to new convention 2019-03-02 16:46:04 -05:00
hash rename std lib files to new convention 2019-03-02 16:46:04 -05:00
io rename std lib files to new convention 2019-03-02 16:46:04 -05:00
math rename std lib files to new convention 2019-03-02 16:46:04 -05:00
meta rename std lib files to new convention 2019-03-02 16:46:04 -05:00
os std.os.changeCurDir no longer needs an allocator 2019-03-05 18:43:39 -05:00
rand rename std lib files to new convention 2019-03-02 16:46:04 -05:00
special breaking changes to zig build API and improved caching 2019-03-08 23:23:11 -05:00
zig rename std lib files to new convention 2019-03-02 16:46:04 -05:00
array_list.zig rename std lib files to new convention 2019-03-02 16:46:04 -05:00
atomic.zig rename std lib files to new convention 2019-03-02 16:46:04 -05:00
base64.zig rename std lib files to new convention 2019-03-02 16:46:04 -05:00
buf_map.zig rename std lib files to new convention 2019-03-02 16:46:04 -05:00
buf_set.zig rename std lib files to new convention 2019-03-02 16:46:04 -05:00
buffer.zig rename std lib files to new convention 2019-03-02 16:46:04 -05:00
build.zig breaking changes to zig build API and improved caching 2019-03-08 23:23:11 -05:00
c.zig rename std lib files to new convention 2019-03-02 16:46:04 -05:00
coff.zig rename std lib files to new convention 2019-03-02 16:46:04 -05:00
crypto.zig rename std lib files to new convention 2019-03-02 16:46:04 -05:00
cstr.zig rename std lib files to new convention 2019-03-02 16:46:04 -05:00
debug.zig rename std lib files to new convention 2019-03-02 16:46:04 -05:00
dwarf.zig self-hosted: create tmp dir for .o files and emit .o file for fn 2018-07-16 20:52:50 -04:00
dynamic_library.zig rename std lib files to new convention 2019-03-02 16:46:04 -05:00
elf.zig rename std lib files to new convention 2019-03-02 16:46:04 -05:00
empty.zig recognize ar program and pass --gc-sections to ld 2016-05-11 14:44:10 -07:00
event.zig update std lib API for I/O 2018-09-30 17:28:35 -04:00
fmt.zig rename std lib files to new convention 2019-03-02 16:46:04 -05:00
hash.zig rename std lib files to new convention 2019-03-02 16:46:04 -05:00
hash_map.zig rename std lib files to new convention 2019-03-02 16:46:04 -05:00
heap.zig rename std lib files to new convention 2019-03-02 16:46:04 -05:00
io.zig rename std lib files to new convention 2019-03-02 16:46:04 -05:00
io_test.zig rename std lib files to new convention 2019-03-02 16:46:04 -05:00
json.zig rename std lib files to new convention 2019-03-02 16:46:04 -05:00
json_test.zig rename std lib files to new convention 2019-03-02 16:46:04 -05:00
lazy_init.zig rename std lib files to new convention 2019-03-02 16:46:04 -05:00
linked_list.zig rename std lib files to new convention 2019-03-02 16:46:04 -05:00
macho.zig New Zig formal grammar (#1685) 2018-11-13 05:08:37 -08:00
math.zig rename std lib files to new convention 2019-03-02 16:46:04 -05:00
mem.zig rename std lib files to new convention 2019-03-02 16:46:04 -05:00
meta.zig rename std lib files to new convention 2019-03-02 16:46:04 -05:00
mutex.zig rename std lib files to new convention 2019-03-02 16:46:04 -05:00
net.zig rename std lib files to new convention 2019-03-02 16:46:04 -05:00
os.zig std.os.changeCurDir no longer needs an allocator 2019-03-05 18:43:39 -05:00
pdb.zig rename std lib files to new convention 2019-03-02 16:46:04 -05:00
priority_queue.zig rename std lib files to new convention 2019-03-02 16:46:04 -05:00
rand.zig rename std lib files to new convention 2019-03-02 16:46:04 -05:00
rb.zig rename std lib files to new convention 2019-03-02 16:46:04 -05:00
segmented_list.zig rename std lib files to new convention 2019-03-02 16:46:04 -05:00
sort.zig rename std lib files to new convention 2019-03-02 16:46:04 -05:00
spinlock.zig rename std lib files to new convention 2019-03-02 16:46:04 -05:00
statically_initialized_mutex.zig rename std lib files to new convention 2019-03-02 16:46:04 -05:00
std.zig rename std lib files to new convention 2019-03-02 16:46:04 -05:00
testing.zig rename std lib files to new convention 2019-03-02 16:46:04 -05:00
unicode.zig rename std lib files to new convention 2019-03-02 16:46:04 -05:00
zig.zig rename std lib files to new convention 2019-03-02 16:46:04 -05:00