From: Kevin Day Date: Tue, 15 Mar 2022 04:35:33 +0000 (-0500) Subject: Update: Add clang support to the bootstrap-example.sh script. X-Git-Tag: 0.5.9~79 X-Git-Url: https://git.kevux.org/?a=commitdiff_plain;h=b2dbda98a72218ea79df928bd6e0642198160788;p=fll Update: Add clang support to the bootstrap-example.sh script. --- diff --git a/build/scripts/bootstrap-example.sh b/build/scripts/bootstrap-example.sh index 282284e..0ac19d0 100644 --- a/build/scripts/bootstrap-example.sh +++ b/build/scripts/bootstrap-example.sh @@ -6,10 +6,14 @@ # Unlike the other scripts, this is not inteded to be run as if it were a program. # Instead this provides a functional example on what commands to perform to perform the bootstrap. # -# This only accepts one argument, followed by two optional arguments: +# This only accepts one argument, followed by these optional arguments: # 1) One of "individual", "level", "monolithic", "fake-individual", "fake-level", or "fake-monolithic". # 2) Optional, may be one of: +V, +q, +n, +l, +d, --enable-shared, --enable-static, --disable-shared, --disable-static. # 3) Optional, may be one of: -w, --work. +# 4) Optional, may be: clang. +# +# The -w/--work requires the path to the work directory following it. +# The clang parameter does not need the "-m". # # This will create a directory at he present working directory of the script caller called "fll" where everything will be installed. # This assumes the shell script is GNU bash. @@ -24,6 +28,7 @@ color= shared= static= version=0.5.9 +clang= let i=2 @@ -55,6 +60,8 @@ while [[ $i -le $# ]] ; do shared="--enable-shared" elif [[ ${!i} == "--disable-shared" ]] ; then shared="--disable-shared" + elif [[ ${!i} == "clang" ]] ; then + clang="-m clang" elif [[ ${!i} == "-w" || ${!i} == "--work" ]] ; then let i++ @@ -82,7 +89,7 @@ if [[ $1 == "individual" ]] ; then ./bootstrap.sh clean $verbose $color && - ./bootstrap.sh build $verbose $color $shared $static -w $path_work -m individual && + ./bootstrap.sh build $verbose $color $shared $static -w $path_work -m individual $clang && ./install.sh $verbose $color $shared $static -w $path_work && @@ -99,7 +106,7 @@ if [[ $1 == "level" ]] ; then ./bootstrap.sh clean $verbose $color && - ./bootstrap.sh build $verbose $color $shared $static -w $path_work -m level && + ./bootstrap.sh build $verbose $color $shared $static -w $path_work -m level $clang && ./install.sh $verbose $color $shared $static -w $path_work && @@ -132,7 +139,7 @@ if [[ $1 == "monolithic" ]] ; then ./bootstrap.sh clean $verbose $color && - ./bootstrap.sh build $verbose $color $shared $static -w $path_work -m monolithic && + ./bootstrap.sh build $verbose $color $shared $static -w $path_work -m monolithic $clang && ./install.sh $verbose $color $shared $static -w $path_work fi