diff --git a/nob.c b/nob.c index c0fabca..369ff97 100644 --- a/nob.c +++ b/nob.c @@ -246,7 +246,7 @@ int main(int argc, char **argv) } Nob_Cmd cmd = {0}; - const char *configured_binary = "./build/nob.configured"; + const char *configured_binary = "build/nob.configured"; nob_cmd_append(&cmd, NOB_REBUILD_URSELF(configured_binary, "nob.c"), "-DCONFIGURED"); if (!nob_cmd_run_sync(cmd)) return 1; diff --git a/src/nob.h b/src/nob.h index 7775c65..fd1bd17 100644 --- a/src/nob.h +++ b/src/nob.h @@ -228,7 +228,7 @@ int nob_file_exists(const char *file_path); # elif defined(__clang__) # define NOB_REBUILD_URSELF(binary_path, source_path) "clang", "-o", binary_path, source_path # elif defined(_MSC_VER) -# define NOB_REBUILD_URSELF(binary_path, source_path) "cl.exe", source_path +# define NOB_REBUILD_URSELF(binary_path, source_path) "cl.exe", nob_temp_sprintf("/Fe:%s", (binary_path)), source_path # endif # else # define NOB_REBUILD_URSELF(binary_path, source_path) "cc", "-o", binary_path, source_path