mirror of
https://github.com/ziglang/zig.git
synced 2024-12-03 10:28:48 +00:00
c7f9833238
* `--verbose-llvm-ir` should trigger analysis and codegen * `-femit-asm` etc should trigger codegen even with `-fno-emit-bin` Closes #12588
7 lines
178 B
Zig
7 lines
178 B
Zig
const std = @import("std");
|
|
|
|
export fn strFromFloatHelp(float: f64) void {
|
|
var buf: [400]u8 = undefined;
|
|
_ = std.fmt.bufPrint(&buf, "{d}", .{float}) catch unreachable;
|
|
}
|