Build tool-chain with llvm release version

This commit is contained in:
afpr
2014-03-19 14:10:37 +00:00
parent e4358226c4
commit d88f47c3bf

View File

@@ -22,6 +22,7 @@ build_rtems=false
build_toolchain=false build_toolchain=false
build_emulator=false build_emulator=false
build_rtems_examples=false build_rtems_examples=false
build_llvm_release=true
get_rtems=true get_rtems=true
function add2bashrc(){ function add2bashrc(){
@@ -95,6 +96,12 @@ if [[ $build_toolchain == "true" ]]; then
sed -i 's/BUILD_EMULATOR=true/BUILD_EMULATOR='$build_emulator'/g' $CFGFILE sed -i 's/BUILD_EMULATOR=true/BUILD_EMULATOR='$build_emulator'/g' $CFGFILE
sed -i 's/#GOLD_CXXFLAGS/GOLD_CXXFLAGS/g' $CFGFILE sed -i 's/#GOLD_CXXFLAGS/GOLD_CXXFLAGS/g' $CFGFILE
if [[ $build_llvm_release == "true" ]]; then
sed -i 's/LLVM_BUILD_TYPE=Debug/LLVM_BUILD_TYPE=Release/g' $CFGFILE
else
sed -i 's/LLVM_BUILD_TYPE=Release/LLVM_BUILD_TYPE=Debug/g' $CFGFILE
fi
if [ -f $CFGFILE ]; then if [ -f $CFGFILE ]; then
source $CFGFILE source $CFGFILE
fi fi