replicant-vendor_replicant/build-toolchain
Wolfgang Wiedmeyer e2e1a2c2e2 just some notes about the toolchain
Signed-off-by: Wolfgang Wiedmeyer <wolfgit@wiedmeyer.de>
2016-01-07 18:47:35 +01:00

21 lines
512 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
#TODO: copy include header (now in /usr/include)
# include patch for binutils
# enable optimization for llvm (more stuff?)
# test with gcc-4.8 binaries if there are errors