Skip to content

Commit

Permalink
Update snakesdl_nldecl.nelua to support TCC
Browse files Browse the repository at this point in the history
Without `-DSDL_DISABLE_IMMINTRIN_H`, TCC would not compile this version of `snakesdl`.
  • Loading branch information
stefanos82 authored and edubart committed Jun 16, 2024
1 parent c344dbd commit 4b2c75f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions examples/snakesdl_nldecl.nelua
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ end
-- include SDL2 header
cinclude '<SDL2/SDL.h>'
-- 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
Expand Down

0 comments on commit 4b2c75f

Please sign in to comment.