Compile libtorrent in C++20 mode

As qbt require C++20 too.
This commit is contained in:
Chocobo1 2024-07-24 15:11:39 +08:00
parent 757708a742
commit 3625c9ef8b
No known key found for this signature in database
GPG Key ID: 210D9C873253A68C
2 changed files with 4 additions and 0 deletions

View File

@ -60,6 +60,8 @@ RUN \
--recurse-submodules \
https://github.com/arvidn/libtorrent.git && \
cd libtorrent && \
CFLAGS="$CFLAGS -std=c++20" \
CXXFLAGS="$CXXFLAGS -std=c++20" \
cmake \
-B build \
-G Ninja \

View File

@ -60,6 +60,8 @@ RUN \
--recurse-submodules \
https://github.com/arvidn/libtorrent.git && \
cd libtorrent && \
CFLAGS="$CFLAGS -std=c++20" \
CXXFLAGS="$CXXFLAGS -std=c++20" \
cmake \
-B build \
-G Ninja \