diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2020-09-29 16:59:35 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2020-09-29 17:01:05 -0700 |
| commit | f69650a4788c57ec20348e9c002884ba39339d1c (patch) | |
| tree | f371e3bc00656c8aacba0dda88141eb97bb41179 /src/link.zig | |
| parent | b811a99af9b5549fd0f0940dafddc63040af01ac (diff) | |
| download | zig-f69650a4788c57ec20348e9c002884ba39339d1c.tar.gz zig-f69650a4788c57ec20348e9c002884ba39339d1c.zip | |
update wasm to use ".o.wasm" extension for objects
This is convenient for debugging purposes, as well as simplifying the
caching system since executable basenames will not conflict with their
corresponding object files.
Diffstat (limited to 'src/link.zig')
| -rw-r--r-- | src/link.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/link.zig b/src/link.zig index 51bf8a64ae..2d215ea0dc 100644 --- a/src/link.zig +++ b/src/link.zig @@ -176,7 +176,7 @@ pub const File = struct { }; } // Open a temporary object file, not the final output file because we want to link with LLD. - break :blk try std.fmt.allocPrint(allocator, "{}{}", .{ emit.sub_path, options.target.oFileExt() }); + break :blk try std.fmt.allocPrint(allocator, "{s}{s}", .{ emit.sub_path, options.target.oFileExt() }); } else emit.sub_path; errdefer if (use_lld) allocator.free(sub_path); |
