mirror of
https://github.com/RetroShare/libretroshare.git
synced 2026-09-12 19:50:03 +05:00
build: enable OpenMP for the parallel GXS deserialisation
Adds -fopenmp where the qmake build compiles and links libretroshare. The previous version of this change also dropped rs_deep_forums_index from the xapian link condition in use_libretroshare.pri; that was unrelated and would have broken deep-forum-index builds, so it is not carried over. CMake builds do not set the flag yet: there the pragma is ignored and the loop runs serially, which is correct, just not parallel. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
49f07b8af0
commit
3eae1832ec
@ -21,6 +21,10 @@ DESTDIR = lib
|
||||
|
||||
QMAKE_CXXFLAGS += -fPIC
|
||||
|
||||
# OpenMP support for parallel deserialization in GXS (rsgenexchange.cc)
|
||||
QMAKE_CXXFLAGS += -fopenmp
|
||||
LIBS += -fopenmp
|
||||
|
||||
## Uncomment to enable Unfinished Services.
|
||||
#CONFIG += wikipoos
|
||||
#CONFIG += gxsthewire
|
||||
|
||||
@ -106,6 +106,8 @@ rs_jsonapi {
|
||||
|
||||
linux-* {
|
||||
mLibs += dl
|
||||
# OpenMP runtime needed for parallel deserialization in rsgenexchange.cc
|
||||
LIBS += -fopenmp
|
||||
}
|
||||
|
||||
rs_deep_channels_index | rs_deep_files_index | rs_deep_forums_index {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user