Skip to content

Commit

Permalink
Fix #62 MSVC build
Browse files Browse the repository at this point in the history
  • Loading branch information
rexim committed Feb 8, 2024
1 parent 3f7ddda commit 1d35ec1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion nob.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
2 changes: 1 addition & 1 deletion src/nob.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1d35ec1

Please sign in to comment.