Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions arm-software/embedded/scripts/build.bat
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@

REM A bat script to build the Arm Toolchain for Embedded

REM The script creates a build of the toolchain in the 'build' directory, inside
REM the repository tree.

set SCRIPT_DIR=%~dp0
for /f %%i in ('git -C %SCRIPT_DIR% rev-parse --show-toplevel') do set REPO_ROOT=%%i

vcvars64.bat

mkdir build
cd build
mkdir %REPO_ROOT%\build
cd %REPO_ROOT%\build

cmake %REPO_ROOT%\arm-software\embedded -GNinja -DFETCHCONTENT_QUIET=OFF
cmake ..\arm-software\embedded -GNinja -DFETCHCONTENT_QUIET=OFF
ninja package-llvm-toolchain
9 changes: 6 additions & 3 deletions arm-software/embedded/scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

# A bash script to build the Arm Toolchain for Embedded

# The script creates a build of the toolchain in the 'build' directory, inside
# the repository tree.

set -ex

SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
Expand All @@ -12,8 +15,8 @@ clang --version
export CC=clang
export CXX=clang++

mkdir build
cd build
mkdir -p ${REPO_ROOT}/build
cd ${REPO_ROOT}/build

cmake ${REPO_ROOT}/arm-software/embedded -GNinja -DFETCHCONTENT_QUIET=OFF
cmake ../arm-software/embedded -GNinja -DFETCHCONTENT_QUIET=OFF
ninja package-llvm-toolchain
8 changes: 7 additions & 1 deletion arm-software/embedded/scripts/test.bat
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@

REM A bat script to run the tests from the Arm Toolchain for Embedded

REM The script assumes a successful build of the toolchain exists in the 'build'
REM directory inside the repository tree.

set SCRIPT_DIR=%~dp0
for /f %%i in ('git -C %SCRIPT_DIR% rev-parse --show-toplevel') do set REPO_ROOT=%%i

vcvars64.bat

cd arm-toolchain\build
cd %REPO_ROOT%\build
ninja check-llvm-toolchain
12 changes: 10 additions & 2 deletions arm-software/embedded/scripts/test.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
#!/bin/bash

# A bash script to run the tests from the Arm Toolchain for Embedded
# A bash script to run the tests from the Arm Toolchain for Embedded.

cd arm-toolchain/build
# The script assumes a successful build of the toolchain exists in the 'build'
# directory inside the repository tree.

set -ex

SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
REPO_ROOT=$( git -C ${SCRIPT_DIR} rev-parse --show-toplevel )

cd ${REPO_ROOT}/build
ninja check-llvm-toolchain