File tree Expand file tree Collapse file tree 4 files changed +29
-9
lines changed
arm-software/embedded/scripts Expand file tree Collapse file tree 4 files changed +29
-9
lines changed Original file line number Diff line number Diff line change 1
1
2
2
REM A bat script to build the Arm Toolchain for Embedded
3
3
4
+ REM The script creates a build of the toolchain in the 'build' directory, inside
5
+ REM the repository tree.
6
+
4
7
set SCRIPT_DIR = %~dp0
5
8
for /f %%i in ('git -C %SCRIPT_DIR% rev-parse --show-toplevel') do set REPO_ROOT = %%i
6
9
7
10
vcvars64.bat
8
11
9
- mkdir build
10
- cd build
12
+ mkdir %REPO_ROOT% \ build
13
+ cd %REPO_ROOT% \ build
11
14
12
- cmake %REPO_ROOT% \arm-software\embedded -GNinja -DFETCHCONTENT_QUIET=OFF
15
+ cmake .. \arm-software\embedded -GNinja -DFETCHCONTENT_QUIET=OFF
13
16
ninja package-llvm-toolchain
Original file line number Diff line number Diff line change 2
2
3
3
# A bash script to build the Arm Toolchain for Embedded
4
4
5
+ # The script creates a build of the toolchain in the 'build' directory, inside
6
+ # the repository tree.
7
+
5
8
set -ex
6
9
7
10
SCRIPT_DIR=$( cd -- " $( dirname -- " ${BASH_SOURCE[0]} " ) " & > /dev/null && pwd )
@@ -12,8 +15,8 @@ clang --version
12
15
export CC=clang
13
16
export CXX=clang++
14
17
15
- mkdir build
16
- cd build
18
+ mkdir -p ${REPO_ROOT} / build
19
+ cd ${REPO_ROOT} / build
17
20
18
- cmake ${REPO_ROOT} /arm-software/embedded -GNinja -DFETCHCONTENT_QUIET=OFF
21
+ cmake .. /arm-software/embedded -GNinja -DFETCHCONTENT_QUIET=OFF
19
22
ninja package-llvm-toolchain
Original file line number Diff line number Diff line change 1
1
2
2
REM A bat script to run the tests from the Arm Toolchain for Embedded
3
3
4
+ REM The script assumes a successful build of the toolchain exists in the 'build'
5
+ REM directory inside the repository tree.
6
+
7
+ set SCRIPT_DIR = %~dp0
8
+ for /f %%i in ('git -C %SCRIPT_DIR% rev-parse --show-toplevel') do set REPO_ROOT = %%i
9
+
4
10
vcvars64.bat
5
11
6
- cd arm-toolchain \build
12
+ cd %REPO_ROOT% \build
7
13
ninja check-llvm-toolchain
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
3
- # A bash script to run the tests from the Arm Toolchain for Embedded
3
+ # A bash script to run the tests from the Arm Toolchain for Embedded.
4
4
5
- cd arm-toolchain/build
5
+ # The script assumes a successful build of the toolchain exists in the 'build'
6
+ # directory inside the repository tree.
7
+
8
+ set -ex
9
+
10
+ SCRIPT_DIR=$( cd -- " $( dirname -- " ${BASH_SOURCE[0]} " ) " & > /dev/null && pwd )
11
+ REPO_ROOT=$( git -C ${SCRIPT_DIR} rev-parse --show-toplevel )
12
+
13
+ cd ${REPO_ROOT} /build
6
14
ninja check-llvm-toolchain
You can’t perform that action at this time.
0 commit comments