mirror of
https://github.com/QB64-Phoenix-Edition/QB64pe.git
synced 2024-07-03 13:31:23 +00:00
Change setup_win.bat to use mingw installer
This commit is contained in:
parent
97240a0b46
commit
18d04afb51
|
@ -10,11 +10,13 @@ del /q /s internal\c\parts\*.a >nul 2>nul
|
||||||
del /q /s internal\temp\*.* >nul 2>nul
|
del /q /s internal\temp\*.* >nul 2>nul
|
||||||
|
|
||||||
if exist internal\c\c_compiler\bin\c++.exe goto skipccompsetup
|
if exist internal\c\c_compiler\bin\c++.exe goto skipccompsetup
|
||||||
cd internal\c
|
cd internal\c\c_compiler
|
||||||
reg Query "HKLM\Hardware\Description\System\CentralProcessor\0" | find /i "x86" > NUL && set MINGW=mingw32 || set MINGW=mingw64
|
reg Query "HKLM\Hardware\Description\System\CentralProcessor\0" | find /i "x86" > NUL && set MINGW=mingw32.exe || set MINGW=mingw64.exe
|
||||||
echo Using %MINGW% as C++ Compiler
|
echo Extracting %MINGW% as C++ Compiler
|
||||||
ren %MINGW% c_compiler
|
@echo off
|
||||||
cd ../..
|
%MINGW% -y
|
||||||
|
|
||||||
|
cd ../../..
|
||||||
:skipccompsetup
|
:skipccompsetup
|
||||||
|
|
||||||
echo Building library 'LibQB'
|
echo Building library 'LibQB'
|
||||||
|
|
Loading…
Reference in a new issue