diff options
| author | Jacob G-W <jacoblevgw@gmail.com> | 2021-06-12 16:51:51 -0400 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2021-07-08 14:10:49 -0700 |
| commit | 72bb6bb1430f0b3b32f0cb5e52054293a59abca6 (patch) | |
| tree | 2a9fd4c878ef85491f09ae5290d75e2fe76c2197 /src/Compilation.zig | |
| parent | 3e59c1502556493b29171c2d22447dd70670ca02 (diff) | |
| download | zig-72bb6bb1430f0b3b32f0cb5e52054293a59abca6.tar.gz zig-72bb6bb1430f0b3b32f0cb5e52054293a59abca6.zip | |
plan9 linker: produce an object file that can actually work!!!
Diffstat (limited to 'src/Compilation.zig')
| -rw-r--r-- | src/Compilation.zig | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/Compilation.zig b/src/Compilation.zig index 1cf4151c62..58425197c1 100644 --- a/src/Compilation.zig +++ b/src/Compilation.zig @@ -3556,6 +3556,8 @@ pub fn generateBuiltinZigSource(comp: *Compilation, allocator: *Allocator) Alloc \\pub const zig_is_stage2 = {}; \\/// Temporary until self-hosted supports the `cpu.arch` value. \\pub const stage2_arch: std.Target.Cpu.Arch = .{}; + \\/// Temporary until self-hosted supports the `os.tag` value. + \\pub const stage2_os: std.Target.Os.Tag = .{}; \\ \\pub const output_mode = std.builtin.OutputMode.{}; \\pub const link_mode = std.builtin.LinkMode.{}; @@ -3571,6 +3573,7 @@ pub fn generateBuiltinZigSource(comp: *Compilation, allocator: *Allocator) Alloc build_options.version, !use_stage1, std.zig.fmtId(@tagName(target.cpu.arch)), + std.zig.fmtId(@tagName(target.os.tag)), std.zig.fmtId(@tagName(comp.bin_file.options.output_mode)), std.zig.fmtId(@tagName(comp.bin_file.options.link_mode)), comp.bin_file.options.is_test, |
