From 3f7dddad8adf6004c9d402e5479a3736949ce6d3 Mon Sep 17 00:00:00 2001 From: rexim Date: Thu, 8 Feb 2024 07:13:21 +0700 Subject: [PATCH] Build mingw variant for the windows subsystem So it does not show the cmd window --- src/nob_win64_mingw.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/nob_win64_mingw.c b/src/nob_win64_mingw.c index 010625d..7205c6d 100644 --- a/src/nob_win64_mingw.c +++ b/src/nob_win64_mingw.c @@ -7,8 +7,7 @@ bool build_musializer(void) Nob_Procs procs = {0}; #ifdef MUSIALIZER_HOTRELOAD - nob_log(NOB_ERROR, "TODO: hotreloading is not supported on %s yet", NOB_ARRAY_GET(target_names, config.target)); - nob_return_defer(false); +#error "TODO: hotreloading is not supported on TARGET_WIN64_MINGW yet" #else cmd.count = 0; #ifdef _WIN32 @@ -25,7 +24,7 @@ bool build_musializer(void) cmd.count = 0; nob_cmd_append(&cmd, "x86_64-w64-mingw32-gcc"); - nob_cmd_append(&cmd, "-Wall", "-Wextra", "-ggdb"); + nob_cmd_append(&cmd, "-mwindows", "-Wall", "-Wextra", "-ggdb"); nob_cmd_append(&cmd, "-I./build/"); nob_cmd_append(&cmd, "-I./raylib/raylib-"RAYLIB_VERSION"/src/"); nob_cmd_append(&cmd, "-o", "./build/musializer");