add warning message for workaround

This commit is contained in:
Kinzie 2024-07-02 01:00:05 +01:00
parent cf420b4d83
commit 6af4428a14
No known key found for this signature in database
GPG Key ID: EF86FC12BB84F79E
1 changed files with 4 additions and 0 deletions

View File

@ -51,6 +51,10 @@ pub fn build(b: *std.Build) !void {
const termbox2 = translate_c.addModule("termbox2"); const termbox2 = translate_c.addModule("termbox2");
exe.root_module.addImport("termbox2", termbox2); exe.root_module.addImport("termbox2", termbox2);
if (optimize == .ReleaseSafe) {
std.debug.print("warn: termbox2 module is being built in ReleaseFast due to a bug.\n", .{});
}
b.installArtifact(exe); b.installArtifact(exe);
const run_cmd = b.addRunArtifact(exe); const run_cmd = b.addRunArtifact(exe);