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) (vlang#835)
  • Loading branch information
spytheman authored Oct 11, 2024
1 parent c4dc415 commit 422552c
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.30.0/lib/x86
}

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

#include <SDL.h>

0 comments on commit 422552c

Please sign in to comment.