aboutsummaryrefslogtreecommitdiff
path: root/src/Compilation.zig
diff options
context:
space:
mode:
authorCarl Åstholm <carl@astholm.se>2025-01-23 23:15:44 +0100
committerCarl Åstholm <carl@astholm.se>2025-07-26 12:06:42 +0200
commit413179ccfca32691504805d04ab1359104d22144 (patch)
tree1a7f3db794f5de61162a981111e97dc9e0169565 /src/Compilation.zig
parentfc4b7c968afa6fa0780a011f3c8cfeaea38b7b98 (diff)
downloadzig-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/Compilation.zig')
0 files changed, 0 insertions, 0 deletions