Skip to content

Commit 4b2c75f

Browse files
stefanos82edubart
authored andcommitted
Update snakesdl_nldecl.nelua to support TCC
Without `-DSDL_DISABLE_IMMINTRIN_H`, TCC would not compile this version of `snakesdl`.
1 parent c344dbd commit 4b2c75f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

examples/snakesdl_nldecl.nelua

+4
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ end
1717
-- include SDL2 header
1818
cinclude '<SDL2/SDL.h>'
1919
-- link SDL2 library
20+
if ccinfo.is_tcc and ccinfo.is_x86_64 then
21+
cflags '-DSDL_DISABLE_IMMINTRIN_H'
22+
end
23+
2024
if ccinfo.is_emscripten then
2125
cflags '-s USE_SDL=2 -s ASYNCIFY=1'
2226
else

0 commit comments

Comments
 (0)