From d916c869953e8a4491d0c74bfdbaf3cd4c7c21e1 Mon Sep 17 00:00:00 2001 From: randy Date: Tue, 2 Jul 2024 10:56:00 +0700 Subject: [PATCH] removed CL builds --- build.bat | 6 ++++-- build_clang.bat | 11 ----------- build_release.bat | 2 +- build_release_clang.bat | 13 ------------- 4 files changed, 5 insertions(+), 27 deletions(-) delete mode 100644 build_clang.bat delete mode 100644 build_release_clang.bat diff --git a/build.bat b/build.bat index 3f03830..fa986c6 100644 --- a/build.bat +++ b/build.bat @@ -1,9 +1,11 @@ @echo off -rmdir /S /Q build +if exist build ( + rmdir /s /q build +) mkdir build pushd build -cl.exe /Fe:cgame.exe ..\build.c /Od /std:c11 /W4 /wd4273 /wd4018 /wd4100 /Zi gdi32.lib user32.lib opengl32.lib +clang -g -o cgame.exe ../build.c -O0 -std=c11 -Wextra -Wno-incompatible-library-redeclaration -Wno-sign-compare -Wno-unused-parameter -Wno-builtin-requires-header -lgdi32 -luser32 -lwinmm -ld3d11 -ldxguid -ld3dcompiler popd \ No newline at end of file diff --git a/build_clang.bat b/build_clang.bat deleted file mode 100644 index fa986c6..0000000 --- a/build_clang.bat +++ /dev/null @@ -1,11 +0,0 @@ -@echo off -if exist build ( - rmdir /s /q build -) -mkdir build - -pushd build - -clang -g -o cgame.exe ../build.c -O0 -std=c11 -Wextra -Wno-incompatible-library-redeclaration -Wno-sign-compare -Wno-unused-parameter -Wno-builtin-requires-header -lgdi32 -luser32 -lwinmm -ld3d11 -ldxguid -ld3dcompiler - -popd \ No newline at end of file diff --git a/build_release.bat b/build_release.bat index 91385a3..7f29d40 100644 --- a/build_release.bat +++ b/build_release.bat @@ -7,7 +7,7 @@ pushd build mkdir release pushd release -cl.exe /Fe:cgame.exe ..\..\build.c /Ox /std:c11 /W4 /wd4273 /wd4018 /wd4100 gdi32.lib user32.lib opengl32.lib +clang -o cgame.exe ../../build.c -Ofast -std=c11 -Wextra -Wno-incompatible-library-redeclaration -Wno-sign-compare -Wno-unused-parameter -Wno-builtin-requires-header -lgdi32 -luser32 -lwinmm -ld3d11 -ldxguid -ld3dcompiler popd popd \ No newline at end of file diff --git a/build_release_clang.bat b/build_release_clang.bat deleted file mode 100644 index 7f29d40..0000000 --- a/build_release_clang.bat +++ /dev/null @@ -1,13 +0,0 @@ -@echo off -rmdir /S /Q build -mkdir build - -pushd build - -mkdir release -pushd release - -clang -o cgame.exe ../../build.c -Ofast -std=c11 -Wextra -Wno-incompatible-library-redeclaration -Wno-sign-compare -Wno-unused-parameter -Wno-builtin-requires-header -lgdi32 -luser32 -lwinmm -ld3d11 -ldxguid -ld3dcompiler - -popd -popd \ No newline at end of file