aboutsummaryrefslogtreecommitdiff
path: root/lib/std
diff options
context:
space:
mode:
Diffstat (limited to 'lib/std')
-rw-r--r--lib/std/build.zig5
-rw-r--r--lib/std/build/RunStep.zig2
2 files changed, 3 insertions, 4 deletions
diff --git a/lib/std/build.zig b/lib/std/build.zig
index 57f0d126d8..b47f962a9d 100644
--- a/lib/std/build.zig
+++ b/lib/std/build.zig
@@ -1898,11 +1898,10 @@ pub const LibExeObjStep = struct {
pub fn runEmulatable(exe: *LibExeObjStep) *EmulatableRunStep {
assert(exe.kind == .exe or exe.kind == .test_exe);
- const run_step = EmulatableRunStep.create(exe.builder.fmt("run {s}", .{exe.step.name}), exe);
+ const run_step = EmulatableRunStep.create(exe.builder, exe.builder.fmt("run {s}", .{exe.step.name}), exe);
if (exe.vcpkg_bin_path) |path| {
- run_step.addPathDir(path);
+ RunStep.addPathDirInternal(&run_step.step, exe.builder, path);
}
-
return run_step;
}
diff --git a/lib/std/build/RunStep.zig b/lib/std/build/RunStep.zig
index 1e22fd10a3..168f5d9d58 100644
--- a/lib/std/build/RunStep.zig
+++ b/lib/std/build/RunStep.zig
@@ -101,7 +101,7 @@ pub fn addPathDir(self: *RunStep, search_path: []const u8) void {
}
/// For internal use only, users of `RunStep` should use `addPathDir` directly.
-fn addPathDirInternal(step: *Step, builder: *Builder, search_path: []const u8) void {
+pub fn addPathDirInternal(step: *Step, builder: *Builder, search_path: []const u8) void {
const env_map = getEnvMapInternal(step, builder.allocator);
const key = "PATH";