diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2020-06-24 22:37:58 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-06-24 22:37:58 -0400 |
| commit | d337469e4484ffd160b4508e2366fefd435f6c8a (patch) | |
| tree | 7ad577eb66febb985ed029ae75c47461611775e2 /lib/std/build.zig | |
| parent | 7875649c2481f90b918581670c9268d6033f873f (diff) | |
| parent | 20b4a2cf2cded8904a57714ed2b90c857f12c6b1 (diff) | |
| download | zig-d337469e4484ffd160b4508e2366fefd435f6c8a.tar.gz zig-d337469e4484ffd160b4508e2366fefd435f6c8a.zip | |
Merge pull request #5583 from ziglang/zig-ast-to-zir
self-hosted: hook up Zig AST to ZIR
Diffstat (limited to 'lib/std/build.zig')
| -rw-r--r-- | lib/std/build.zig | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/std/build.zig b/lib/std/build.zig index a4d922f2ad..df1dc6d73a 100644 --- a/lib/std/build.zig +++ b/lib/std/build.zig @@ -1905,10 +1905,11 @@ pub const LibExeObjStep = struct { builder.allocator, &[_][]const u8{ builder.cache_root, builder.fmt("{}_build_options.zig", .{self.name}) }, ); - try fs.cwd().writeFile(build_options_file, self.build_options_contents.span()); + const path_from_root = builder.pathFromRoot(build_options_file); + try fs.cwd().writeFile(path_from_root, self.build_options_contents.span()); try zig_args.append("--pkg-begin"); try zig_args.append("build_options"); - try zig_args.append(builder.pathFromRoot(build_options_file)); + try zig_args.append(path_from_root); try zig_args.append("--pkg-end"); } |
