Last active
October 14, 2022 20:02
-
-
Save HFTrader/689df916ea816e52e673905f82cccfda to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # This gist downloads a minimal set of boost libraries just enough to compile the regex library | |
| set -exo pipefail | |
| INSTALL_DIR=/ssd/tmp/install | |
| TMPDIR=/ssd/tmp | |
| TAG=boost-1.78.0 | |
| cd $TMPDIR | |
| rm -rf boost | |
| git clone https://github.com/boostorg/boost.git | |
| cd boost | |
| git checkout $TAG | |
| allsm=" tools/build | |
| tools/boost_install | |
| libs/regex | |
| libs/config | |
| libs/headers | |
| libs/throw_exception | |
| libs/exception | |
| libs/assert" | |
| for sm in $allsm; do | |
| git submodule update --init $sm | |
| done | |
| #export LD=/usr/local/bin/ld.lld | |
| #export CC='/usr/local/bin/clang' | |
| #export CXX='/usr/local/bin/clang++' | |
| #export CXXFLAGS='-O3 -stdlib=libc++ -std=c++20 -stdlib=libc++' | |
| #export LDFLAGS="-lc++abi -lc++" | |
| ./bootstrap.sh --prefix=$INSTALL_DIR | |
| #--with-toolset=clang | |
| ./b2 headers | |
| #bash libs/config/configure | |
| #cp -vf user.hpp libs/config/include/boost/config/user.hpp | |
| #cp -vf user.hpp boost/config/user.hpp | |
| ./b2 install -q -a \ | |
| --prefix=$INSTALL_DIR \ | |
| --build-type=minimal \ | |
| --layout=system \ | |
| --disable-icu \ | |
| --with-regex \ | |
| variant=release link=static runtime-link=static \ | |
| threading=single address-model=64 architecture=x86 | |
| # toolset=clang |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment