| author | |
| committer | |
| log | 5aef54cbc83cce5c1afe9aededfc505d89559741 |
| tree | aa3a60637123d531b5c7834e25019aa46aac82d5 |
| parent | c6fb798740119b78def920c649c03a644fa2380b |
with this, the tests should pass4 files changed, 12 insertions(+), 5 deletions(-)
src/Compilation.zig+3-3| ... | ... | @@ -1088,10 +1088,10 @@ pub fn create(gpa: Allocator, options: InitOptions) !*Compilation { |
| 1088 | 1088 | // Once they are capable this condition could be removed. When removing this condition, |
| 1089 | 1089 | // also test the use case of `build-obj -fcompiler-rt` with the native backends |
| 1090 | 1090 | // and make sure the compiler-rt symbols are emitted. |
| 1091 | const capable_of_building_compiler_rt = build_options.have_llvm; | |
| 1091 | const capable_of_building_compiler_rt = build_options.have_llvm and options.target.os.tag != .plan9; | |
| 1092 | 1092 | |
| 1093 | const capable_of_building_zig_libc = build_options.have_llvm; | |
| 1094 | const capable_of_building_ssp = build_options.have_llvm; | |
| 1093 | const capable_of_building_zig_libc = build_options.have_llvm and options.target.os.tag != .plan9; | |
| 1094 | const capable_of_building_ssp = build_options.have_llvm and options.target.os.tag != .plan9; | |
| 1095 | 1095 | |
| 1096 | 1096 | const comp: *Compilation = comp: { |
| 1097 | 1097 | // For allocations that have the same lifetime as Compilation. This arena is used only during this |
src/link.zig+1-1| ... | ... | @@ -581,7 +581,7 @@ pub const File = struct { |
| 581 | 581 | .macho => return @fieldParentPtr(MachO, "base", base).updateDeclLineNumber(module, decl), |
| 582 | 582 | .c => return @fieldParentPtr(C, "base", base).updateDeclLineNumber(module, decl), |
| 583 | 583 | .wasm => return @fieldParentPtr(Wasm, "base", base).updateDeclLineNumber(module, decl), |
| 584 | .plan9 => @panic("TODO: implement updateDeclLineNumber for plan9"), | |
| 584 | .plan9 => return @fieldParentPtr(Plan9, "base", base).updateDeclLineNumber(module, decl), | |
| 585 | 585 | .spirv, .nvptx => {}, |
| 586 | 586 | } |
| 587 | 587 | } |
src/link/Plan9.zig+7| ... | ... | @@ -956,6 +956,13 @@ pub fn allocateDeclIndexes(self: *Plan9, decl_index: Module.Decl.Index) !void { |
| 956 | 956 | _ = self; |
| 957 | 957 | _ = decl_index; |
| 958 | 958 | } |
| 959 | /// Must be called only after a successful call to `updateDecl`. | |
| 960 | pub fn updateDeclLineNumber(self: *Plan9, mod: *Module, decl: *const Module.Decl) !void { | |
| 961 | _ = self; | |
| 962 | _ = mod; | |
| 963 | _ = decl; | |
| 964 | } | |
| 965 | ||
| 959 | 966 | pub fn getDeclVAddr( |
| 960 | 967 | self: *Plan9, |
| 961 | 968 | decl_index: Module.Decl.Index, |
test/cases/plan9/exit.zig+1-1| ... | ... | @@ -1,5 +1,5 @@ |
| 1 | 1 | pub fn main() void {} |
| 2 | 2 | |
| 3 | 3 | // run |
| 4 | // target=x86_64-plan9,aarch64-plan9 | |
| 4 | // target=x86_64-plan9 | |
| 5 | 5 | // |