Migrate to modern TBB version
This commit is contained in:
parent
ed912c5c39
commit
1d59fdd140
@ -475,7 +475,6 @@ if(ENABLE_CONAN)
|
||||
lua/${CONAN_LUA_VERSION}
|
||||
onetbb/${CONAN_TBB_VERSION}
|
||||
BASIC_SETUP
|
||||
BUILD missing
|
||||
GENERATORS cmake_find_package
|
||||
KEEP_RPATHS
|
||||
NO_OUTPUT_DIRS
|
||||
@ -484,9 +483,9 @@ if(ENABLE_CONAN)
|
||||
)
|
||||
# explicitly say Conan to use x86 dependencies if build for x86 platforms (https://github.com/conan-io/cmake-conan/issues/141)
|
||||
if(NOT CMAKE_SIZEOF_VOID_P EQUAL 8)
|
||||
conan_cmake_run("${CONAN_ARGS} ARCH x86")
|
||||
conan_cmake_run("${CONAN_ARGS} BUILD all ARCH x86")
|
||||
else()
|
||||
conan_cmake_run("${CONAN_ARGS}")
|
||||
conan_cmake_run("${CONAN_ARGS} BUILD missing ")
|
||||
endif()
|
||||
|
||||
add_dependency_includes(${CONAN_INCLUDE_DIRS_BOOST})
|
||||
|
||||
@ -4,8 +4,15 @@ ARG BUILD_CONCURRENCY
|
||||
RUN mkdir -p /src && mkdir -p /opt
|
||||
|
||||
RUN apt-get update && \
|
||||
apt-get -y --no-install-recommends install cmake make git gcc g++ libbz2-dev libxml2-dev \
|
||||
libzip-dev libboost1.74-all-dev lua5.2 liblua5.2-dev libtbb-dev -o APT::Install-Suggests=0 -o APT::Install-Recommends=0
|
||||
apt-get -y --no-install-recommends install cmake make git gcc g++ libbz2-dev libxml2-dev wget \
|
||||
libzip-dev libboost1.74-all-dev lua5.2 liblua5.2-dev -o APT::Install-Suggests=0 -o APT::Install-Recommends=0
|
||||
|
||||
RUN export TBB_VERSION=2021.3.0 && \
|
||||
export TBB_URL="https://github.com/oneapi-src/oneTBB/releases/download/v${TBB_VERSION}/oneapi-tbb-${TBB_VERSION}-lin.tgz" && \
|
||||
wget --tries 5 ${TBB_URL} -O onetbb.tgz && \
|
||||
tar zxvf onetbb.tgz && \
|
||||
cp -a oneapi-tbb-${TBB_VERSION}/lib/. /usr/local/lib/ && \
|
||||
cp -a oneapi-tbb-${TBB_VERSION}/include/. /usr/local/include/
|
||||
|
||||
COPY . /src
|
||||
WORKDIR /src
|
||||
@ -37,7 +44,7 @@ RUN apt-get update && \
|
||||
apt-get install -y --no-install-recommends libboost-program-options1.74.0 libboost-regex1.74.0 \
|
||||
libboost-date-time1.74.0 libboost-chrono1.74.0 libboost-filesystem1.74.0 \
|
||||
libboost-iostreams1.74.0 libboost-system1.74.0 libboost-thread1.74.0 \
|
||||
expat liblua5.2-0 libtbb2 &&\
|
||||
expat liblua5.2-0 &&\
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
COPY --from=builder /usr/local /usr/local
|
||||
COPY --from=builder /opt /opt
|
||||
|
||||
@ -17,7 +17,7 @@
|
||||
|
||||
#if defined(_MSC_VER)
|
||||
// for `InterlockedCompareExchange`
|
||||
#include <winnt.h>
|
||||
#include <windows.h>
|
||||
#endif
|
||||
|
||||
namespace osrm
|
||||
|
||||
Loading…
Reference in New Issue
Block a user