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.
413179ccfcCarl Åstholm committed on 7/26/2025, 10:06:42 AMparentfc4b7c9
1 file changedLine totals unavailable