aboutsummaryrefslogtreecommitdiff
path: root/lib/std/Build/Step/ConfigHeader.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2024-04-09 18:23:48 -0700
committerAndrew Kelley <andrew@ziglang.org>2024-04-10 15:02:20 -0700
commit7fb5a0b18b8620750f71d24152dc6651a0437ae1 (patch)
tree855688e466a9abb007605cd8e516ac229f74dd3a /lib/std/Build/Step/ConfigHeader.zig
parentc4587dc9f46e15d4fb875a7675bc1aa22138c1ab (diff)
downloadzig-7fb5a0b18b8620750f71d24152dc6651a0437ae1.tar.gz
zig-7fb5a0b18b8620750f71d24152dc6651a0437ae1.zip
introduce std.Build.path; deprecate LazyPath.relative
This adds the *std.Build owner to LazyPath so that lazy paths returned from a dependency can be used in the application without friction or footguns. closes #19313
Diffstat (limited to 'lib/std/Build/Step/ConfigHeader.zig')
-rw-r--r--lib/std/Build/Step/ConfigHeader.zig1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/std/Build/Step/ConfigHeader.zig b/lib/std/Build/Step/ConfigHeader.zig
index 46631cac24..d774994872 100644
--- a/lib/std/Build/Step/ConfigHeader.zig
+++ b/lib/std/Build/Step/ConfigHeader.zig
@@ -58,6 +58,7 @@ pub fn create(owner: *std.Build, options: Options) *ConfigHeader {
if (options.style.getPath()) |s| default_include_path: {
const sub_path = switch (s) {
+ .src_path => |sp| sp.sub_path,
.path => |path| path,
.generated, .generated_dirname => break :default_include_path,
.cwd_relative => |sub_path| sub_path,