mirror of
https://github.com/t-crest/rtems.git
synced 2025-11-16 12:34:47 +00:00
Build tool-chain with llvm release version
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user