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:
jolavillette 2026-07-29 14:18:38 +02:00
parent 49f07b8af0
commit 3eae1832ec
2 changed files with 6 additions and 0 deletions

View File

@ -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

View File

@ -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 {