summaryrefslogtreecommitdiffhomepage
path: root/projects/scripts
diff options
context:
space:
mode:
authorDennis E. Hamilton <[email protected]>2021-09-30 13:29:35 -0700
committerGitHub <[email protected]>2021-09-30 22:29:35 +0200
commite34c0911f9068eb99cd9cc52ddbfff1fa6b9905a (patch)
treeb1c40f66e6cde56a12409c75f549c97e78cde46b /projects/scripts
parent93efa565f959ef1857dd3835376b17430901629d (diff)
downloadraylib-e34c0911f9068eb99cd9cc52ddbfff1fa6b9905a.tar.gz
raylib-e34c0911f9068eb99cd9cc52ddbfff1fa6b9905a.zip
Cleanup x64/x86 options in scripts/build-windows.bat (#2023)
* Match build-windows.bat changes The location for manual setting of the vcvarsall.bat location moved to line 38 in the latest change. * Update flags for clean x64/x86 building std:c11 is required for initialization features used in raylib. UTF-8 for consistency in contemporary systems. /W3 gets rid of puzzling slack byte and linker in-lining warnings. /sdl for some insecure library usages in the user code that beginners should learn about early.
Diffstat (limited to 'projects/scripts')
-rw-r--r--projects/scripts/build-windows.bat10
1 files changed, 5 insertions, 5 deletions
diff --git a/projects/scripts/build-windows.bat b/projects/scripts/build-windows.bat
index 37319491..1cf180bb 100644
--- a/projects/scripts/build-windows.bat
+++ b/projects/scripts/build-windows.bat
@@ -22,7 +22,7 @@ REM verbose, sorry.
REM To skip to the actual building part of the script, search for ":BUILD"
-REM Checks if cl is available and skips to the argument loop if it is
+REM Checks if cl is available and skips to the argument loop if it is
REM (Prevents calling vcvarsall every time you run this script)
WHERE cl >nul 2>nul
IF %ERRORLEVEL% == 0 goto READ_ARGS
@@ -122,16 +122,16 @@ set "RAYLIB_SRC=!ROOT_DIR!\!RAYLIB_SRC!"
REM Flags
set OUTPUT_FLAG=/Fe: "!GAME_NAME!"
-set COMPILATION_FLAGS=/O1 /GL
-set WARNING_FLAGS=
+set COMPILATION_FLAGS=/std:c11 /O1 /GL /favor:blend /utf-8 /validate-charset /EHsc
+set WARNING_FLAGS=/W3 /sdl
set SUBSYSTEM_FLAGS=/SUBSYSTEM:WINDOWS /ENTRY:mainCRTStartup
set LINK_FLAGS=/link /LTCG kernel32.lib user32.lib shell32.lib winmm.lib gdi32.lib opengl32.lib
set OUTPUT_DIR=builds\windows-msvc
REM Debug changes to flags
IF DEFINED BUILD_DEBUG (
set OUTPUT_FLAG=/Fe: "!GAME_NAME!"
- set COMPILATION_FLAGS=/Od /Zi
- set WARNING_FLAGS=/Wall
+ set COMPILATION_FLAGS=/std:c11 /Od /Zi /utf-8 /validate-charset /EHsc
+ set WARNING_FLAGS=/W3 /sdl
set SUBSYSTEM_FLAGS=/DEBUG
set LINK_FLAGS=/link kernel32.lib user32.lib shell32.lib winmm.lib gdi32.lib opengl32.lib
set OUTPUT_DIR=builds-debug\windows-msvc