From 6b51040abac65ef77823d1e59b8af9add144f79c Mon Sep 17 00:00:00 2001 From: rexim Date: Thu, 8 Feb 2024 10:27:32 +0700 Subject: [PATCH] Build MSVC variant for Windows Subsystem --- src/nob_win64_msvc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/nob_win64_msvc.c b/src/nob_win64_msvc.c index bfd1f75..5633c8d 100644 --- a/src/nob_win64_msvc.c +++ b/src/nob_win64_msvc.c @@ -30,6 +30,8 @@ bool build_musializer(void) ); nob_cmd_append(&cmd, "/link", + "/SUBSYSTEM:WINDOWS", + "/entry:mainCRTStartup", nob_temp_sprintf("/LIBPATH:build/raylib/%s", MUSIALIZER_TARGET_NAME), "raylib.lib"); nob_cmd_append(&cmd, "Winmm.lib", "gdi32.lib", "User32.lib", "Shell32.lib", "./build/musializer.res");