From 4b2c75f8fe5c1d11a966b2fe8974a256868749a6 Mon Sep 17 00:00:00 2001 From: stefanos <1777466+stefanos82@users.noreply.github.com> Date: Sun, 16 Jun 2024 17:06:22 +0300 Subject: [PATCH] Update snakesdl_nldecl.nelua to support TCC Without `-DSDL_DISABLE_IMMINTRIN_H`, TCC would not compile this version of `snakesdl`. --- examples/snakesdl_nldecl.nelua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/examples/snakesdl_nldecl.nelua b/examples/snakesdl_nldecl.nelua index 69438248..d6c4170e 100644 --- a/examples/snakesdl_nldecl.nelua +++ b/examples/snakesdl_nldecl.nelua @@ -17,6 +17,10 @@ end -- include SDL2 header cinclude '' -- link SDL2 library +if ccinfo.is_tcc and ccinfo.is_x86_64 then + cflags '-DSDL_DISABLE_IMMINTRIN_H' +end + if ccinfo.is_emscripten then cflags '-s USE_SDL=2 -s ASYNCIFY=1' else