Fix graphs-csv with wasm-multithreaded build

csv-parser didn't get the -pthread flag. Now, we add the -pthread flag if this is compiled with multithreaded wasm.

Fixes: QTBUG-139340
Change-Id: I0f9cca453bb7f13b8e3e005be5c55aa586cd2c88
Reviewed-by: Morten Johan Sørvig <morten.sorvig@qt.io>
Reviewed-by: Johanna Äijälä <johanna.aijala@qt.io>
(cherry picked from commit 44f6242058)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
(cherry picked from commit 6ad858247a)
This commit is contained in:
Sami Varanka 2025-09-11 12:59:00 +03:00 committed by Qt Cherry-pick Bot
parent a7eb97dd13
commit cbb89253db
1 changed files with 4 additions and 0 deletions

View File

@ -1 +1,5 @@
if (EMSCRIPTEN AND QT_FEATURE_thread)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pthread")
endif()
add_subdirectory(csv-parser)