From 3872c0d746960bcaebf41e0b246f51b6e09198c6 Mon Sep 17 00:00:00 2001 From: kamkow1 Date: Sun, 25 May 2025 22:56:27 +0200 Subject: [PATCH] Regenerate compile_flags.txt when build program changes --- gebs.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gebs.h b/gebs.h index 2e566fe..ae981e9 100644 --- a/gebs.h +++ b/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"); \