ed5cdba81f
This is just an initial version. It builds clang without fancy options for now. Signed-off-by: Wolfgang Wiedmeyer <wolfgit@wiedmeyer.de>
16 lines
339 B
Bash
Executable File
16 lines
339 B
Bash
Executable File
#!/bin/sh
|
|
set -e
|
|
|
|
BASEDIR=$(pwd)
|
|
|
|
mkdir -p $BASEDIR/toolchain/clang
|
|
cd $BASEDIR/toolchain/clang
|
|
|
|
# build llvm and clang binaries
|
|
cmake -DCMAKE_BUILD_TYPE=Release -DLLVM_TARGETS_TO_BUILD="X86;ARM" \
|
|
-DLLVM_EXTERNAL_CLANG_SOURCE_DIR=../../external/clang \
|
|
-DCMAKE_C_FLAGS="-O2" ../../external/llvm/
|
|
make -j $(nproc)
|
|
|
|
cd $BASEDIR
|