diff options
| author | patrick-scho | 2025-04-17 22:11:31 +0200 |
|---|---|---|
| committer | patrick-scho | 2025-04-17 22:11:31 +0200 |
| commit | ed07fa5aa45759ad962bd4dcef85d53b65070424 (patch) | |
| tree | c44eebf5965bbe74697423e4f741006c9202d4cc /build.cmd | |
| parent | 6fe31b9ef4cb9861beb7461fe935345d5947b849 (diff) | |
| download | autorec-ed07fa5aa45759ad962bd4dcef85d53b65070424.tar.gz autorec-ed07fa5aa45759ad962bd4dcef85d53b65070424.zip | |
use zig to build
Diffstat (limited to 'build.cmd')
| -rw-r--r-- | build.cmd | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -3,5 +3,9 @@ REM cl src/mongoose.c -c
REM rc res/res.rc
-cl /EHsc src/main.cpp src/mongoose.c /Fo"./out"/ /link user32.lib gdi32.lib shell32.lib Shlwapi.lib ws2_32.lib res/res.res /out:out/main.exe
-REM mt -manifest res/main.exe.manifest -outputresource:main.exe;1
\ No newline at end of file +REM cl /EHsc src/main.cpp src/mongoose.c /Fo"./out"/ /link user32.lib gdi32.lib shell32.lib Shlwapi.lib ws2_32.lib res/res.res /out:out/main.exe
+REM mt -manifest res/main.exe.manifest -outputresource:main.exe;1
+
+REM clang++ src/main.cpp src/mongoose.c -luser32 -lgdi32 -lshell32 -lShlwapi -lws2_32 res\res.res -o out/main.exe -Wno-deprecated -Wno-deprecated-declarations
+
+zig c++ src/main.cpp src/mongoose.c -luser32 -lgdi32 -lshell32 -lshlwapi -lws2_32 res/res.res -o out/main.exe -Wl,--subsystem,windows
\ No newline at end of file |
