diff options
| author | Zapolsky Anton <wc3ft2@gmail.com> | 2023-06-13 21:09:24 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-06-13 14:09:24 -0400 |
| commit | c76ce25a6165e96015b11d506e3c968c6c8dca2c (patch) | |
| tree | 0b83e93af54588d41593fd941acfe72180b60577 /lib/std/Build/Step/CheckObject.zig | |
| parent | 854f26ad8ac8dc39ef7ad60f86588c0c5dba131a (diff) | |
| download | zig-c76ce25a6165e96015b11d506e3c968c6c8dca2c.tar.gz zig-c76ce25a6165e96015b11d506e3c968c6c8dca2c.zip | |
Remove CheckObjectStep.runAndCompare (#15973)
Closes #14969
Diffstat (limited to 'lib/std/Build/Step/CheckObject.zig')
| -rw-r--r-- | lib/std/Build/Step/CheckObject.zig | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/lib/std/Build/Step/CheckObject.zig b/lib/std/Build/Step/CheckObject.zig index 24ebfef388..1c2d86e4e3 100644 --- a/lib/std/Build/Step/CheckObject.zig +++ b/lib/std/Build/Step/CheckObject.zig @@ -42,22 +42,6 @@ pub fn create( return self; } -/// Runs and (optionally) compares the output of a binary. -/// Asserts `self` was generated from an executable step. -/// TODO this doesn't actually compare, and there's no apparent reason for it -/// to depend on the check object step. I don't see why this function should exist, -/// the caller could just add the run step directly. -pub fn runAndCompare(self: *CheckObject) *std.Build.Step.Run { - const dependencies_len = self.step.dependencies.items.len; - assert(dependencies_len > 0); - const exe_step = self.step.dependencies.items[dependencies_len - 1]; - const exe = exe_step.cast(std.Build.Step.Compile).?; - const run = self.step.owner.addRunArtifact(exe); - run.skip_foreign_checks = true; - run.step.dependOn(&self.step); - return run; -} - const SearchPhrase = struct { string: []const u8, file_source: ?std.Build.FileSource = null, |
