Allow RULE()s with 0 dependencies
This commit is contained in:
3
gebs.h
3
gebs.h
@ -387,6 +387,9 @@ void gebs_rebuild_self1_alloc(Gebs_Allocator *alloc, int argc, char ** argv,
|
||||
({ \
|
||||
const char *__deps[] = { __VA_ARGS__ }; \
|
||||
bool __ok = false; \
|
||||
if (sizeof(__deps)/sizeof(__deps[0]) == 0) { \
|
||||
__ok = true; \
|
||||
} \
|
||||
for (size_t __i = 0; __i < sizeof(__deps)/sizeof(__deps[0]); __i++) { \
|
||||
if (gebs_needs_rebuild((out), __deps[__i])) { \
|
||||
__ok = true; \
|
||||
|
Reference in New Issue
Block a user