aboutsummaryrefslogtreecommitdiff
path: root/src/ThreadPool.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2023-02-04 22:44:21 -0700
committerAndrew Kelley <andrew@ziglang.org>2023-02-05 06:26:30 -0700
commitb29e3fa2cd667cc967b4c7dfb5023e5ac0224d96 (patch)
tree7b436f99dc6063e380813a0a357351f301fdbaad /src/ThreadPool.zig
parentb04e48566c58ed22fdb0dbe7ac866877ad53133c (diff)
downloadzig-b29e3fa2cd667cc967b4c7dfb5023e5ac0224d96.tar.gz
zig-b29e3fa2cd667cc967b4c7dfb5023e5ac0224d96.zip
std.Build: enhancements to ConfigHeaderStep
Breaking API change to std.Build.addConfigHeader. It now uses an options struct. Introduce std.Build.CompileStep.installConfigHeader which also accepts an options struct. This is used to add a generated config file into the set of installed header files for a particular compilation artifact. std.Build.ConfigHeaderStep now additionally supports a "blank" style where a header is generated from scratch. It no longer exposes `output_dir`. Instead it exposes a FileSource via `output_file`. It now additionally accepts an `include_path` option which affects the include path of CompileStep when using the `#include` directive, as well as affecting the default installation subdirectory for header installation purposes. The hash used for the directory to store the generated config file now includes the contents of the generated file. This fixes possible race conditions when generating multiple header files simultaneously. The values hash table is now an array hash map, to preserve order for the "blank" use case. I also took the opportunity to remove output_dir from TranslateCStep and WriteFileStep. This is technically a breaking change, but it was always naughty to access these fields.
Diffstat (limited to 'src/ThreadPool.zig')
0 files changed, 0 insertions, 0 deletions