From 1d17a5789050033509dd0be81c52183aee73bd99 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Sat, 26 Apr 2025 21:31:14 -0400 Subject: Don't compile coroutines when using TinyCC --- Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'Makefile') 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 -- cgit v1.2.3