Skip to content
This repository was archived by the owner on Feb 12, 2025. It is now read-only.
Merged

#29 #40

Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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