Subversion Repositories QNX 8.QNX8 LLVM/Clang compiler suite

Rev

Rev 23 | Rev 27 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 23 Rev 24
Line 8... Line 8...
8
set REQUIRED_TOOLS=wget python3 cmake gcc g++ ninja:ninja-build ccache
8
set REQUIRED_TOOLS=wget python3 cmake gcc g++ ninja:ninja-build ccache
9
 
9
 
10
 
10
 
11
rem // make sure we have at least Windows 10
11
rem // make sure we have at least Windows 10
12
for /f "tokens=4 delims=. " %%i in ('ver') do set VERSION=%%i
12
for /f "tokens=4 delims=. " %%i in ('ver') do set VERSION=%%i
13
echo Detected Windows version: %VERSION%
13
echo Detected Windows NT kernel version: %VERSION%
14
if %VERSION% LSS 10 (
14
if %VERSION% LSS 10 (
15
        echo Error: you need at least Windows 10 to cross-build LLVM to QNX 8.
15
        echo Error: you need at least Windows 10 to cross-build LLVM to QNX 8.
-
 
16
        echo Please upgrade your Windows operating system to Windows 10 version 2004 build
-
 
17
        echo 19041 or a later version.
16
        goto :exit_error
18
        goto :exit_error
17
)
19
)
18
 
20
 
19
rem // if WSL is not installed, do so
21
rem // if WSL is not installed, do so
20
echo Checking WSL presence...
22
echo Checking WSL presence...
Line 76... Line 78...
76
rem // set the QNX8 SDP build environment, deploying the toolchain symlinks if necessary
78
rem // set the QNX8 SDP build environment, deploying the toolchain symlinks if necessary
77
set THISDIR=%CD%
79
set THISDIR=%CD%
78
cd ..\qnx800
80
cd ..\qnx800
79
call qnxsdp-env.bat || goto :exit_error
81
call qnxsdp-env.bat || goto :exit_error
80
cd "%THISDIR%"
82
cd "%THISDIR%"
-
 
83
 
-
 
84
rem // TODO: a possible way to accelerate the build would be to copy $QNX_HOST and $QNX_TARGET into the WSL2 filesystem
-
 
85
rem // instead of having the GCC compiler continuously cross the bridge back and forth between NTFS and ext4.
-
 
86
rem // But hey. Let's see if the current way of doing things is acceptable first.
81
 
87
 
82
rem // now run WSL from this directory and chain-call the POSIX Bourne shell build script
88
rem // now run WSL from this directory and chain-call the POSIX Bourne shell build script
83
wsl --distribution %WSL_DISTR% -- ./cross-build.sh || goto :exit_error
89
wsl --distribution %WSL_DISTR% -- ./cross-build.sh || goto :exit_error
84
 
90
 
85
rem // at this point, the story is supposed to have ended well.
91
rem // at this point, the story is supposed to have ended well.