From abb07eb9605daad57ab693104884ce05ffea95ca Mon Sep 17 00:00:00 2001 From: Trent Huber Date: Sun, 20 Jul 2025 23:47:03 -0400 Subject: [PATCH] build() bug fix --- cbs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cbs.c b/cbs.c index 40f4143..d3e7b72 100644 --- a/cbs.c +++ b/cbs.c @@ -158,7 +158,7 @@ void build(char *path) { if (stat("build.c", &src) == -1) err(EXIT_FAILURE, "Unable to stat `build.c'"); - if (stat("build.o", &obj) == -1 && src.st_mtime > obj.st_mtime) { + if (stat("build.o", &obj) == -1 || src.st_mtime > obj.st_mtime) { compile("build"); load('x', "build", (char *[]){"build", NULL}); } else if (!path) return; -- 2.51.0