Skip to content

Commit 82c3740

Browse files
author
Oleg Samarin
committed
Added capability of building on debian 10
1 parent 65ec577 commit 82c3740

File tree

4 files changed

+12
-5
lines changed

4 files changed

+12
-5
lines changed

build-scripts/for-linux/build-on-linux.bash

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff 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

build-scripts/for-linux/prepare-debian-based-clang.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,12 @@
55
set -e
66

77
sudo 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++

build-scripts/for-linux/prepare-debian-based.bash

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff 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

1616
sudo 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

flowbench/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ else()
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

0 commit comments

Comments
 (0)