Skip to content

Commit

Permalink
general: ignore generated binary files, pass only -lSDL2 on windows (…
Browse files Browse the repository at this point in the history
…enables `-subsystem windows` to work on gcc and clang) (#831)
  • Loading branch information
spytheman authored Oct 11, 2024
1 parent ccee9ba commit 1af94c1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
# Ignore binary files
*.so
*.so
*.exe
*.tmp.obj
*.dll
thirdparty/
4 changes: 2 additions & 2 deletions c/sdl.c.v
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ $if x64 {
} $else {
#flag windows -L @VMODROOT/thirdparty/SDL2-2.0.22/lib/x86
}

#flag windows -I @VMODROOT/thirdparty/SDL2-2.0.22/include
#flag windows -Dmain=SDL_main
#flag windows -lSDL2main -lSDL2
#flag windows -lSDL2

#include <SDL.h>

0 comments on commit 1af94c1

Please sign in to comment.