diff options
| author | Mason Remaley <MasonRemaley@users.noreply.github.com> | 2023-05-24 14:26:07 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-05-24 14:26:07 -0700 |
| commit | 5744ceedb8ea4b3e5906175033f634b17287f3ca (patch) | |
| tree | 5e5178c8f53a7bf6ffadfc713051661e04220de8 /test/tests.zig | |
| parent | c9dffc842e5b9875066f012daaa0888d073ba584 (diff) | |
| download | zig-5744ceedb8ea4b3e5906175033f634b17287f3ca.tar.gz zig-5744ceedb8ea4b3e5906175033f634b17287f3ca.zip | |
Fixes `WriteFile.getFileSource` failure on Windows (#15730)
Diffstat (limited to 'test/tests.zig')
| -rw-r--r-- | test/tests.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/tests.zig b/test/tests.zig index 641914aabe..5912ceb907 100644 --- a/test/tests.zig +++ b/test/tests.zig @@ -759,7 +759,7 @@ pub fn addCliTests(b: *std.Build) *Step { "-fno-emit-bin", "-fno-emit-h", "-fstrip", "-OReleaseFast", }); - run.addFileSourceArg(writefile.getFileSource("example.zig").?); + run.addFileSourceArg(writefile.files.items[0].getFileSource()); const example_s = run.addPrefixedOutputFileArg("-femit-asm=", "example.s"); const checkfile = b.addCheckFile(example_s, .{ |
