define debug or release on build system commandline
This commit is contained in:
8
build.c
8
build.c
@ -4,11 +4,13 @@
|
||||
|
||||
char *prog = NULL;
|
||||
|
||||
#define MY_DEBUG 0
|
||||
|
||||
int main(int argc, char ** argv)
|
||||
{
|
||||
rebuild_self(argc, argv, "cc", "-o", "build", "build.c");
|
||||
#if MY_DEBUG
|
||||
rebuild_self(argc, argv, "cc", "-DMY_DEBUG=1", "-o", "build", "build.c");
|
||||
#else
|
||||
rebuild_self(argc, argv, "cc", "-DMY_DEBUG=0", "-o", "build", "build.c");
|
||||
#endif
|
||||
|
||||
prog = SHIFT(&argc, &argv);
|
||||
char *cmd = SHIFT(&argc, &argv);
|
||||
|
Reference in New Issue
Block a user