mirror of
				https://github.com/raysan5/raylib.git
				synced 2025-10-26 12:27:01 +00:00 
			
		
		
		
	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.
This commit is contained in:
		 Dennis E. Hamilton
					Dennis E. Hamilton
				
			
				
					committed by
					
						 GitHub
						GitHub
					
				
			
			
				
	
			
			
			 GitHub
						GitHub
					
				
			
						parent
						
							93efa565f9
						
					
				
				
					commit
					e34c0911f9
				
			| @@ -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 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user