File tree Expand file tree Collapse file tree 4 files changed +12
-5
lines changed
Expand file tree Collapse file tree 4 files changed +12
-5
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,8 @@ APP_PRMS="\
2727 $CMAKE_VERSION_PRMS \
2828 -DFDB_RELEASE=$RELEASE_FLAG \
2929 -DGENERATE_DEBUG_PACKAGES=OFF \
30- -DUSE_LIBCXX=OFF \
30+ -DUSE_LIBCXX=ON \
31+ -DUSE_LD=LLD \
3132 -DSTATIC_LINK_LIBCXX=ON \
3233 -DENABLE_SIMULATION_TESTS=ON"
3334
Original file line number Diff line number Diff line change 55set -e
66
77sudo apt update
8- RECENT_PKG=` apt search -o APT::Cache::Search::Version=1 ' ^clang-[0-9][0-9]$' | awk ' {print $1;}' | sort | tail -n 1`
8+ RECENT_VERSION=` \
9+ apt search -o APT::Cache::Search::Version=1 ' ^clang-[0-9]+$' \
10+ | tr - ' ' | awk ' {print $2;}' | sort -n | tail -n 1`
911
10- sudo DEBIAN_FRONTEND=noninteractive apt install -y $RECENT_PKG
12+ sudo DEBIAN_FRONTEND=noninteractive apt install -y \
13+ $clang -$RECENT_VERSION libc++-$RECENT_VERSION -dev libc++abi-$RECENT_VERSION -dev
1114
1215[ -e /usr/local/bin/clang ] || sudo ln -s ` ls -1 /usr/bin/clang-[0-9]* | tail -n 1` /usr/local/bin/clang
1316[ -e /usr/local/bin/clang++ ] || sudo ln -s ` ls -1 /usr/bin/clang++-[0-9]* | tail -n 1` /usr/local/bin/clang++
Original file line number Diff line number Diff line change @@ -9,12 +9,13 @@ sudo apt update
99$BASE_DIR /prepare-debian-based-cmake.bash 3.24
1010$BASE_DIR /prepare-debian-based-clang.sh
1111$BASE_DIR /prepare-debian-based-jdk.bash
12- $BASE_DIR /prepare-debian-based-libstdc.sh
12+ # $BASE_DIR/prepare-debian-based-libstdc.sh
1313
1414# make is necessary for building Jemalloc on Astra Linux
1515
1616sudo DEBIAN_FRONTEND=noninteractive apt-get install -y \
1717 git \
18+ lld \
1819 mono-mcs \
1920 make \
2021 ninja-build \
@@ -35,4 +36,4 @@ sudo DEBIAN_FRONTEND=noninteractive apt-get install -y \
3536 libmono-system-runtime-serialization4.0-cil \
3637 libmono-system-xml-linq4.0-cil
3738
38- sudo pip install sphinx-bootstrap-theme
39+ sudo pip3 install sphinx-bootstrap-theme
Original file line number Diff line number Diff line change 4141 message (FATAL_ERROR "Build step for Benchmark has Failed. ${results} " )
4242 endif ()
4343 set (BENCHMARK_ENABLE_TESTING OFF )
44+ # libc++ implicitly requires -pthread
45+ set (CMAKE_CXX_FLAGS ${VARIANT} "${CMAKE_CXX_FLAGS} -pthread" )
4446 add_subdirectory (
4547 ${CMAKE_CURRENT_BINARY_DIR} /googlebenchmark-src
4648 ${CMAKE_CURRENT_BINARY_DIR} /googlebenchmark-build
You can’t perform that action at this time.
0 commit comments