first pass at zig build system
* `zig build --export [obj|lib|exe]` changed to `zig build_obj`, `zig build_lib` and `zig build_exe` respectively. * `--name` parameter is optional when it can be inferred from the root source filename. closes #207 * `zig build` now looks for `build.zig` which interacts with `std.build.Builder` to describe the targets, and then the zig build system prints TODO: build these targets. See #204 * add `@bitcast` which is mainly used for pointer reinterpret casting and make explicit casting not do pointer reinterpretation. Closes #290 * fix debug info for byval parameters * sort command line help options * `std.debug.panic` supports format string printing * add `std.mem.IncrementingAllocator` * fix const ptr to a variable with data changing at runtime. closes #289
This commit is contained in:
@@ -765,9 +765,9 @@ static void ir_print_init_enum(IrPrint *irp, IrInstructionInitEnum *instruction)
|
||||
fprintf(irp->f, "}");
|
||||
}
|
||||
|
||||
static void ir_print_pointer_reinterpret(IrPrint *irp, IrInstructionPointerReinterpret *instruction) {
|
||||
fprintf(irp->f, "@pointerReinterpret(");
|
||||
ir_print_other_instruction(irp, instruction->ptr);
|
||||
static void ir_print_bit_cast(IrPrint *irp, IrInstructionBitCast *instruction) {
|
||||
fprintf(irp->f, "@bitcast(");
|
||||
ir_print_other_instruction(irp, instruction->target);
|
||||
fprintf(irp->f, ")");
|
||||
}
|
||||
|
||||
@@ -1098,8 +1098,8 @@ static void ir_print_instruction(IrPrint *irp, IrInstruction *instruction) {
|
||||
case IrInstructionIdInitEnum:
|
||||
ir_print_init_enum(irp, (IrInstructionInitEnum *)instruction);
|
||||
break;
|
||||
case IrInstructionIdPointerReinterpret:
|
||||
ir_print_pointer_reinterpret(irp, (IrInstructionPointerReinterpret *)instruction);
|
||||
case IrInstructionIdBitCast:
|
||||
ir_print_bit_cast(irp, (IrInstructionBitCast *)instruction);
|
||||
break;
|
||||
case IrInstructionIdWidenOrShorten:
|
||||
ir_print_widen_or_shorten(irp, (IrInstructionWidenOrShorten *)instruction);
|
||||
|
||||
Reference in New Issue
Block a user