0
Fork 0
mirror of https://codeberg.org/ziglang/zig synced 2026-11-18 07:05:05 +00:00
zig/lib/std/Build/Cache.zig

1255 lines
44 KiB

2021-11-24 23:08:37 -07:00
2020-03-06 20:23:15 -07:00
2020-05-01 23:06:10 -06:00
Improvements to docs and text * docs(std.math): elaborate on difference between absCast and absInt * docs(std.rand.Random.weightedIndex): elaborate on likelihood I think this makes it easier to understand. * langref: add small reminder * docs(std.fs.path.extension): brevity * docs(std.bit_set.StaticBitSet): mention the specific types * std.debug.TTY: explain what purpose this struct serves This should also make it clearer that this struct is not supposed to provide unrelated terminal manipulation functionality such as setting the cursor position or something because terminals are complicated and we should keep this struct simple and focused on debugging. * langref(package listing): brevity * langref: explain what exactly `threadlocal` causes to happen * std.array_list: link between swapRemove and orderedRemove Maybe this can serve as a TLDR and make it easier to decide. * PrefetchOptions.locality: clarify docs that this is a range This confused me previously and I thought I can only use either 0 or 3. * fix typos and more * std.builtin.CallingConvention: document some CCs * langref: explain possibly cryptic names I think it helps knowing what exactly these acronyms (@clz and @ctz) and abbreviations (@popCount) mean. * variadic function error: add missing preposition * std.fmt.format docs: nicely hyphenate * help menu: say what to optimize for I think this is slightly more specific than just calling it "optimizations". These are speed optimizations. I used the word "performance" here.
2023-04-23 20:06:21 +02:00
stage2: caching system integration & Module/Compilation splitting * update to the new cache hash API * std.Target defaultVersionRange moves to std.Target.Os.Tag * std.Target.Os gains getVersionRange which returns a tagged union * start the process of splitting Module into Compilation and "zig module". - The parts of Module having to do with only compiling zig code are extracted into ZigModule.zig. - Next step is to rename Module to Compilation. - After that rename ZigModule back to Module. * implement proper cache hash usage when compiling C objects, and properly manage the file lock of the build artifacts. * make versions optional to match recent changes to master branch. * proper cache hash integration for compiling zig code * proper cache hash integration for linking even when not compiling zig code. * ELF LLD linking integrates with the caching system. A comment from the source code: Here we want to determine whether we can save time by not invoking LLD when the output is unchanged. None of the linker options or the object files that are being linked are in the hash that namespaces the directory we are outputting to. Therefore, we must hash those now, and the resulting digest will form the "id" of the linking job we are about to perform. After a successful link, we store the id in the metadata of a symlink named "id.txt" in the artifact directory. So, now, we check if this symlink exists, and if it matches our digest. If so, we can skip linking. Otherwise, we proceed with invoking LLD. * implement disable_c_depfile option * add tracy to a few more functions
2020-09-13 19:17:58 -07:00
2020-04-07 23:57:19 -06:00
2020-04-07 23:57:19 -06:00
2020-05-01 23:06:10 -06:00
2020-04-07 23:57:19 -06:00
2020-04-07 23:57:19 -06:00
2020-04-30 17:12:29 -06:00
2020-04-11 16:01:17 -06:00
2020-05-01 23:06:10 -06:00
2020-09-19 14:16:58 +03:00
2020-09-19 14:16:58 +03:00
2021-11-24 23:08:37 -07:00
2020-09-19 14:16:58 +03:00
2020-09-19 14:16:58 +03:00
2020-09-19 14:16:58 +03:00
2021-11-24 23:08:37 -07:00
2020-04-07 23:57:19 -06:00
2022-04-18 23:08:00 -07:00
2022-04-18 23:08:00 -07:00
2020-05-01 23:06:10 -06:00
2020-03-05 22:59:19 -07:00
2020-04-11 16:01:17 -06:00
2020-05-25 19:46:28 -04:00
2020-03-05 22:59:19 -07:00
2020-03-05 22:59:19 -07:00
2020-03-05 22:59:19 -07:00
2020-03-05 22:59:19 -07:00
2020-03-05 22:59:19 -07:00
2020-03-05 22:59:19 -07:00
2020-03-05 22:59:19 -07:00
2020-04-11 16:01:17 -06:00
2020-05-25 19:46:28 -04:00
2020-05-01 23:06:10 -06:00
2020-05-01 23:06:10 -06:00
2020-05-25 19:46:28 -04:00
2020-05-25 19:46:28 -04:00