diff options
| author | Carl Åstholm <carl@astholm.se> | 2025-01-23 23:15:44 +0100 |
|---|---|---|
| committer | Carl Åstholm <carl@astholm.se> | 2025-07-26 12:06:42 +0200 |
| commit | 413179ccfca32691504805d04ab1359104d22144 (patch) | |
| tree | 1a7f3db794f5de61162a981111e97dc9e0169565 /src/codegen/aarch64/Select.zig | |
| parent | fc4b7c968afa6fa0780a011f3c8cfeaea38b7b98 (diff) | |
| download | zig-413179ccfca32691504805d04ab1359104d22144.tar.gz zig-413179ccfca32691504805d04ab1359104d22144.zip | |
std.Build: Deprecate `Step.Compile` APIs that mutate the root module
Not only are `Step.Compile` methods like `linkLibC()` redundant because
`Module` exposes the same APIs, it also might not be immediately obvious
to users that these methods modify the underlying root module, which can
be a footgun and lead to unintended results if the module is exported to
package consumers or shared by multiple compile steps.
Using `compile.root_module.link_libc = true` makes it more clear to
users which of the compile step and the module owns which options.
Diffstat (limited to 'src/codegen/aarch64/Select.zig')
0 files changed, 0 insertions, 0 deletions
