Allow compiling against libstdc++ and c++03

master
Marius Kintel 2015-04-26 16:11:10 -04:00
parent c45f2b5f36
commit e21b321323
1 changed files with 6 additions and 6 deletions

View File

@ -7,7 +7,7 @@
# This script must be run from the OpenSCAD source root directory # This script must be run from the OpenSCAD source root directory
# #
# Usage: macosx-build-dependencies.sh [-16lcdf] [<package>] # Usage: macosx-build-dependencies.sh [-16lcdf] [<package>]
# -1 Build using C++11 # -3 Build using C++03 and libstdc++
# -6 Build only 64-bit binaries # -6 Build only 64-bit binaries
# -l Force use of LLVM compiler # -l Force use of LLVM compiler
# -c Force use of clang compiler # -c Force use of clang compiler
@ -38,7 +38,7 @@ PACKAGES=(
"eigen 3.2.4" "eigen 3.2.4"
"gmp 5.1.3" "gmp 5.1.3"
"mpfr 3.1.2" "mpfr 3.1.2"
"boost 1.57.0" "boost 1.58.0"
"qt5 5.4.1" "qt5 5.4.1"
"qscintilla 2.8.4" "qscintilla 2.8.4"
# NB! For eigen, also update the path in the function # NB! For eigen, also update the path in the function
@ -61,9 +61,9 @@ DEPLOY_PACKAGES=(
printUsage() printUsage()
{ {
echo "Usage: $0 [-16lcdf] [<package>]" echo "Usage: $0 [-36lcdf] [<package>]"
echo echo
echo " -1 Build using C++11" echo " -3 Build using C++03 and libstdc++"
echo " -6 Build only 64-bit binaries" echo " -6 Build only 64-bit binaries"
echo " -l Force use of LLVM compiler" echo " -l Force use of LLVM compiler"
echo " -c Force use of clang compiler" echo " -c Force use of clang compiler"
@ -830,10 +830,10 @@ if [ ! -f $OPENSCADDIR/openscad.pro ]; then
fi fi
OPENSCAD_SCRIPTDIR=$PWD/scripts OPENSCAD_SCRIPTDIR=$PWD/scripts
while getopts '16lcdf' c while getopts '36lcdf' c
do do
case $c in case $c in
1) OPTION_CXX11=true;; 3) USING_CXX11=false;;
6) OPTION_32BIT=false;; 6) OPTION_32BIT=false;;
l) OPTION_LLVM=true;; l) OPTION_LLVM=true;;
c) OPTION_CLANG=true;; c) OPTION_CLANG=true;;