Regenerate compile_flags.txt when build program changes
This commit is contained in:
2
gebs.h
2
gebs.h
@ -274,7 +274,7 @@ void gebs_rebuild_self1_alloc(Gebs_Allocator *alloc, int argc, char ** argv,
|
||||
|
||||
#define gebs_make_compile_flags(...) \
|
||||
do { \
|
||||
if (!gebs_exists("compile_flags.txt")) { \
|
||||
if (gebs_needs_rebuild("compile_flags.txt", __FILE__)) { \
|
||||
GEBS_LOGI("Creating compile_flags.txt\n"); \
|
||||
const char *__flags[] = { __VA_ARGS__ }; \
|
||||
FILE *__out = fopen("compile_flags.txt", "w"); \
|
||||
|
Reference in New Issue
Block a user