Regenerate compile_flags.txt when build program changes

This commit is contained in:
kamkow1
2025-05-25 22:56:27 +02:00
parent fe2c4f1cf7
commit 3872c0d746

2
gebs.h
View File

@ -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"); \