Skip to content

Commit

Permalink
[tarantool] Use system libs if it possible (google#9005)
Browse files Browse the repository at this point in the history
Using system libs could speed up building fuzzers.

Without proposed options 96 sec
(https://ui.perfetto.dev/#!/viewer?local_cache_key=00000000-0000-0000-0676-f89ffd3869f9)

With proposed options 46 sec
(https://ui.perfetto.dev/#!/viewer?local_cache_key=00000000-0000-0000-eb1b-afafc4282a5c)
  • Loading branch information
ligurio authored and eamonnmcmanus committed Mar 15, 2023
1 parent 66a4f4d commit 8f79847
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
3 changes: 2 additions & 1 deletion projects/tarantool/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ RUN apt-get update && apt-get install -y \
build-essential cmake make coreutils sed \
autoconf automake libtool zlib1g-dev \
libreadline-dev libncurses5-dev libssl-dev \
libunwind-dev luajit wget ninja-build
libunwind-dev luajit wget ninja-build \
libzstd-dev libyaml-dev libcurl4-openssl-dev

RUN wget https://github.com/unicode-org/icu/archive/refs/tags/cldr/2021-08-25.tar.gz && \
tar xzvf ./2021-08-25.tar.gz && \
Expand Down
6 changes: 6 additions & 0 deletions projects/tarantool/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,12 @@ cmake_args=(
-DCMAKE_EXE_LINKER_FLAGS="${LDFLAGS}"
-DCMAKE_MODULE_LINKER_FLAGS="${LDFLAGS}"
-DCMAKE_SHARED_LINKER_FLAGS="${LDFLAGS}"

# Dependencies
-DENABLE_BUNDLED_LIBCURL=OFF
-DENABLE_BUNDLED_LIBUNWIND=OFF
-DENABLE_BUNDLED_LIBYAML=OFF
-DENABLE_BUNDLED_ZSTD=OFF
)

# Build the project and fuzzers.
Expand Down

0 comments on commit 8f79847

Please sign in to comment.