From 4a60070bf1753d403fc1b3472a49ea5795316c6b Mon Sep 17 00:00:00 2001 From: ratchetfreak Date: Tue, 7 Oct 2025 13:29:03 +0200 Subject: [PATCH] add /Fo flag to msvc to move output obj files to build folder --- nob.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nob.h b/nob.h index 737f61f..1c72558 100644 --- a/nob.h +++ b/nob.h @@ -588,7 +588,7 @@ NOBDEF bool nob_set_current_dir(const char *path); #ifndef nob_cc_output # if defined(_MSC_VER) && !defined(__clang__) -# define nob_cc_output(cmd, output_path) nob_cmd_append(cmd, nob_temp_sprintf("/Fe:%s", (output_path))) +# define nob_cc_output(cmd, output_path) nob_cmd_append(cmd, nob_temp_sprintf("/Fe:%s", (output_path)), nob_temp_sprintf("/Fo:%s", (output_path))) # else # define nob_cc_output(cmd, output_path) nob_cmd_append(cmd, "-o", (output_path)) # endif