Rev 28 | Rev 30 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 28 | Rev 29 | ||
---|---|---|---|
Line 2... | Line 2... | ||
2 | setlocal enableextensions enabledelayedexpansion |
2 | setlocal enableextensions enabledelayedexpansion |
3 | 3 | ||
- | 4 | rem // what we're building |
|
- | 5 | set PRODUCT_NAME=the LLVM compiler suite |
|
- | 6 | ||
4 | rem // |
7 | rem // the WSL distribution to use |
5 | set WSL_DISTR=Ubuntu-22.04 |
8 | set WSL_DISTR=Ubuntu-22.04 |
6 | 9 | ||
7 | rem // name of the QNX SDK root directory |
10 | rem // name of the QNX SDK root directory |
8 | set QNXSDK_DIRNAME=qnx800 |
11 | set QNXSDK_DIRNAME=qnx800 |
9 | 12 | ||
Line 17... | Line 20... | ||
17 | 20 | ||
18 | rem // make sure we have at least Windows 10 |
21 | rem // make sure we have at least Windows 10 |
19 | for /f "tokens=4 delims=. " %%i in ('ver') do set VERSION=%%i |
22 | for /f "tokens=4 delims=. " %%i in ('ver') do set VERSION=%%i |
20 | echo Detected Windows NT kernel version: %VERSION% |
23 | echo Detected Windows NT kernel version: %VERSION% |
21 | if %VERSION% LSS 10 ( |
24 | if %VERSION% LSS 10 ( |
22 | echo Error: you need at least Windows 10 to cross-build |
25 | echo Error: you need at least Windows 10 to cross-build %PRODUCT_NAME% to QNX 8. |
23 | echo Please upgrade your Windows operating system to Windows 10 version 2004 build |
26 | echo Please upgrade your Windows operating system to Windows 10 version 2004 build |
24 | echo 19041 or a later version. |
27 | echo 19041 or a later version. |
25 | goto :exit_error |
28 | goto :exit_error |
26 | ) |
29 | ) |
27 | 30 | ||
Line 140... | Line 143... | ||
140 | wsl --distribution %WSL_DISTR% -- ./cross-build.sh || goto :exit_error |
143 | wsl --distribution %WSL_DISTR% -- ./cross-build.sh || goto :exit_error |
141 | 144 | ||
142 | rem // at this point, the story is supposed to have ended well. |
145 | rem // at this point, the story is supposed to have ended well. |
143 | rem // Keep calm, and I'll tell you another one tomorrow. |
146 | rem // Keep calm, and I'll tell you another one tomorrow. |
144 | echo. |
147 | echo. |
145 | echo |
148 | echo The build ended successfully. |
146 | goto :exit_success |
149 | goto :exit_success |
147 | 150 | ||
148 | 151 | ||
149 | :install_wsl |
152 | :install_wsl |
150 | echo Installing the Windows Subsystem for Linux... |
153 | echo Installing the Windows Subsystem for Linux... |
Line 170... | Line 173... | ||
170 | pause |
173 | pause |
171 | exit /b 1 |
174 | exit /b 1 |
172 | 175 | ||
173 | :exit_success |
176 | :exit_success |
174 | rem // successful exit |
177 | rem // successful exit |
- | 178 | pause |
|
175 | exit /b 0 |
179 | exit /b 0 |