Bläddra i källkod

Build only necessary boost stuff and force libstdc++ in benchmarklib.

master
Ray Burgemeestre 4 år sedan
förälder
incheckning
b92873391d
2 ändrade filer med 35 tillägg och 2 borttagningar
  1. +1
    -1
      benchmarklib/Makefile
  2. +34
    -1
      boost/Makefile

+ 1
- 1
benchmarklib/Makefile Visa fil

# if [[ -f CMakeCache.txt ]]; then rm CMakeCache.txt; fi # if [[ -f CMakeCache.txt ]]; then rm CMakeCache.txt; fi
dpkg -i boost/pkg/*.deb dpkg -i boost/pkg/*.deb
pushd benchmarklib && \ pushd benchmarklib && \
CXX=$$(which c++) cmake -DSTATIC=1 -DBOOST_ROOT=/opt/cppse/build/boost -DCMAKE_INSTALL_PREFIX=$$PWD/benchmarklib_out . && \
CXX=$$(which c++) cmake -DSTATIC=1 -DBOOST_ROOT=/opt/cppse/build/boost -DCMAKE_INSTALL_PREFIX=$$PWD/benchmarklib_out -DNO_AUTO_USE_LIBCPP_CLANG=1 . && \
make -j $$(nproc) && \ make -j $$(nproc) && \
make install make install



+ 34
- 1
boost/Makefile Visa fil

mkdir -p target && \ mkdir -p target && \
CXX=$$(which c++) ./bootstrap.sh --prefix=$$PWD/target/ --with-toolset=clang && \ CXX=$$(which c++) ./bootstrap.sh --prefix=$$PWD/target/ --with-toolset=clang && \
./b2 clean && \ ./b2 clean && \
./b2 --prefix=$$PWD/target/ toolset=clang cxxflags="-D_GLIBCXX_USE_CXX11_ABI=0 -std=c++17" || true
./b2 --prefix=$$PWD/target/ toolset=clang cxxflags="-std=c++17 -stdlib=libstdc++" linkflags="-stdlib=libstdc++" --with-program_options \
--with-system \
--with-date_time \
--with-thread \
--with-chrono || true
# do not use -D_GLIBCXX_USE_CXX11_ABI=0 , other libs I now compile with libstdc++ don't do it either.
# with stdlib: \ # with stdlib: \
#./b2 --prefix=$$PWD/target/ toolset=clang cxxflags="-D_GLIBCXX_USE_CXX11_ABI=0 -stdlib=libc++ -std=c++17" linkflags="-stdlib=libc++" || true #./b2 --prefix=$$PWD/target/ toolset=clang cxxflags="-D_GLIBCXX_USE_CXX11_ABI=0 -stdlib=libc++ -std=c++17" linkflags="-stdlib=libc++" || true
# without: # without:
# ^ ||true because with clang I saw a few libraries not compile correctly, we can ignore those. # ^ ||true because with clang I saw a few libraries not compile correctly, we can ignore those.
#./b2 --with-program_options --prefix=$$PWD/target/ toolset=clang cxxflags="-stdlib=libc++ -std=c++17" linkflags="-stdlib=libc++" #./b2 --with-program_options --prefix=$$PWD/target/ toolset=clang cxxflags="-stdlib=libc++ -std=c++17" linkflags="-stdlib=libc++"


# also from; ./b2 --show-libraries && \
#- atomic
#- container
#- context
#- contract
#- coroutine
#- exception
#- fiber
#- filesystem
#- graph
#- graph_parallel
#- headers
#- iostreams
#- locale
#- log
#- math
#- mpi
#- nowide
#- python
#- random
#- regex
#- serialization
#- stacktrace
#- test
#- timer
#- type_erasure
#- wave

package: package:
rm -rf out rm -rf out
mkdir -p out/opt/cppse/build/boost/include/ mkdir -p out/opt/cppse/build/boost/include/

Laddar…
Avbryt
Spara