aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2025-04-26 21:31:14 -0400
committerBruce Hill <bruce@bruce-hill.com>2025-04-26 21:31:14 -0400
commit1d17a5789050033509dd0be81c52183aee73bd99 (patch)
treeb12e188f06a8653195ac60a050f3cf996c2737a7
parentc8af445d01d66d96b7f364d5ecbd3fe3423a0939 (diff)
Don't compile coroutines when using TinyCC
-rw-r--r--Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 8c37d1ca..a9d45317 100644
--- a/Makefile
+++ b/Makefile
@@ -193,7 +193,12 @@ install-files: build/bin/tomo build/lib/$(LIB_FILE) build/lib/$(AR_FILE) check-u
cp man/man3/* "$(PREFIX)/man/man3/"
install-libs: build/bin/tomo check-utilities
- ./local-tomo -qIL lib/patterns lib/time lib/commands lib/shell lib/random lib/base64 lib/coroutines lib/pthreads lib/uuid lib/core
+ # Coroutines don't work with TCC for now
+ if $(DEFAULT_C_COMPILER) --version | grep -q 'tcc version'; then \
+ ./local-tomo -qIL lib/patterns lib/time lib/commands lib/shell lib/random lib/base64 lib/pthreads lib/uuid lib/core; \
+ else \
+ ./local-tomo -qIL lib/patterns lib/time lib/commands lib/shell lib/random lib/base64 lib/coroutines lib/pthreads lib/uuid lib/core; \
+ fi
install: install-files install-libs