From 742feff6e06718ab91cde3b88332876ab32847c9 Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Fri, 11 Oct 2024 15:56:09 +0300 Subject: [PATCH] general: ignore generated binary files, pass only -lSDL2 on windows (enables `-subsystem windows` to work on gcc and clang) (#834) --- .gitignore | 6 +++++- c/sdl.c.v | 4 ++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index cb8598aa..798a2942 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,6 @@ # Ignore binary files -*.so \ No newline at end of file +*.so +*.exe +*.tmp.obj +*.dll +thirdparty/ diff --git a/c/sdl.c.v b/c/sdl.c.v index 3c1fa8d6..361915b3 100644 --- a/c/sdl.c.v +++ b/c/sdl.c.v @@ -30,8 +30,8 @@ $if x64 { } $else { #flag windows -L @VMODROOT/thirdparty/SDL2-2.28.0/lib/x86 } + #flag windows -I @VMODROOT/thirdparty/SDL2-2.28.0/include -#flag windows -Dmain=SDL_main -#flag windows -lSDL2main -lSDL2 +#flag windows -lSDL2 #include