@@ -16,7 +16,7 @@ TARBALL=$UNCOMPRESSED_NAME.tar.gz
16
16
# need to maybe migrate to github https://github.com/boostorg/boost
17
17
18
18
BOOST_LIBS=" filesystem system"
19
- EXTRA_CPPFLAGS=" -std=c++11 -stdlib=libc++ -fPIC -DBOOST_SP_USE_SPINLOCK"
19
+ EXTRA_CPPFLAGS=" -std=c++${CPP_STANDARD} -stdlib=libc++ -fPIC -DBOOST_SP_USE_SPINLOCK"
20
20
21
21
# tools for git use
22
22
@@ -86,15 +86,15 @@ function prepare() {
86
86
# executed inside the lib src dir
87
87
function build() {
88
88
if [ " $TYPE " == " vs" ]; then
89
- ./b2 --debug-configuration -j${PARALLEL_MAKE} cxxflags=" -std=c++11 -stdlib=libc++ -Wno-implicit-function-declaration" threading=multi variant=release --build-dir=build --stage-dir=stage --with-filesystem link=static address-model=$ARCH stage
89
+ ./b2 --debug-configuration -j${PARALLEL_MAKE} cxxflags=" -std=c++${CPP_STANDARD} -stdlib=libc++ -Wno-implicit-function-declaration" threading=multi variant=release --build-dir=build --stage-dir=stage --with-filesystem link=static address-model=$ARCH stage
90
90
mv stage stage_$ARCH
91
91
92
92
cd tools/bcp
93
93
../../b2
94
94
95
95
96
96
elif [ " $TYPE " == " osx" ]; then
97
- ./b2 -j${PARALLEL_MAKE} toolset=clang cxxflags=" -std=c++11 -stdlib=libc++ -arch arm64 -arch x86_64 -Wno-implicit-function-declaration -mmacosx-version-min=${OSX_MIN_SDK_VER} " linkflags=" -stdlib=libc++" threading=multi variant=release --build-dir=build --stage-dir=stage link=static stage
97
+ ./b2 -j${PARALLEL_MAKE} toolset=clang cxxflags=" -std=c++${CPP_STANDARD} -stdlib=libc++ -arch arm64 -arch x86_64 -Wno-implicit-function-declaration -mmacosx-version-min=${OSX_MIN_SDK_VER} " linkflags=" -stdlib=libc++" threading=multi variant=release --build-dir=build --stage-dir=stage link=static stage
98
98
cd tools/bcp
99
99
../../b2
100
100
elif [[ " $TYPE " == " ios" || " ${TYPE} " == " tvos" ]]; then
@@ -281,12 +281,12 @@ EOF
281
281
echo " Finished Build for $TYPE "
282
282
elif [ " $TYPE " == " emscripten" ]; then
283
283
cp $FORMULA_DIR /project-config-emscripten.jam project-config.jam
284
- ./b2 -j${PARALLEL_MAKE} toolset=clang cxxflags=" -std=c++11 " threading=multi threadapi=pthread variant=release --build-dir=build --stage-dir=stage link=static stage
284
+ ./b2 -j${PARALLEL_MAKE} toolset=clang cxxflags=" -std=c++${CPP_STANDARD} " threading=multi threadapi=pthread variant=release --build-dir=build --stage-dir=stage link=static stage
285
285
elif [ " $TYPE " == " android" ]; then
286
286
rm -rf stage stage_$ARCH
287
287
288
288
source ../../android_configure.sh $ABI
289
- ./b2 -j${PARALLEL_MAKE} toolset=clang cxxflags=" -std=c++11 $CFLAGS " cflags=" $CFLAGS " threading=multi threadapi=pthread target-os=android variant=release --build-dir=build_$ARCH link=static stage
289
+ ./b2 -j${PARALLEL_MAKE} toolset=clang cxxflags=" -std=c++${CPP_STANDARD} $CFLAGS " cflags=" $CFLAGS " threading=multi threadapi=pthread target-os=android variant=release --build-dir=build_$ARCH link=static stage
290
290
291
291
# Run ranlib on binaries (not called corectly by b2)
292
292
${RANLIB} stage/lib/libboost_filesystem.a
0 commit comments