Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Ciremun committed Jul 18, 2021
1 parent 02fccca commit ad76b56
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion nobuild.h
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,13 @@ void chain_echo(Chain chain);
// TODO(#29): REBUILD_URSELF does not distinguish MSVC and MinGW setups on Windows
#ifndef REBUILD_URSELF
# if _WIN32
# define REBUILD_URSELF(binary_path, source_path) CMD("cl.exe", source_path)
# if defined(__GNUC__)
# define REBUILD_URSELF(binary_path, source_path) CMD("gcc", "-o", binary_path, source_path)
# elif defined(__clang__)
# define REBUILD_URSELF(binary_path, source_path) CMD("clang", "-o", binary_path, source_path)
# elif defined(_MSC_VER)
# define REBUILD_URSELF(binary_path, source_path) CMD("cl.exe", source_path)
# endif
# else
# define REBUILD_URSELF(binary_path, source_path) CMD("cc", "-o", binary_path, source_path)
# endif
Expand Down

0 comments on commit ad76b56

Please sign in to comment.