mirror of
https://github.com/ziglang/zig.git
synced 2026-02-07 23:17:17 +00:00
coff: circumvent stage1 inference problems
This commit is contained in:
parent
83d89a05b7
commit
9618fdc8a2
@ -2181,7 +2181,7 @@ pub fn getEntryPoint(self: Coff) ?SymbolWithLoc {
|
||||
pub fn getImageBase(self: Coff) u64 {
|
||||
const image_base: u64 = self.base.options.image_base_override orelse switch (self.base.options.output_mode) {
|
||||
.Exe => switch (self.base.options.target.cpu.arch) {
|
||||
.aarch64 => 0x140000000,
|
||||
.aarch64 => @as(u64, 0x140000000),
|
||||
.x86_64, .i386 => 0x400000,
|
||||
else => unreachable, // unsupported target architecture
|
||||
},
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user