Add -pthread to emscripten compile and link commands.

This commit is contained in:
Bartosz Taudul 2024-03-21 01:08:50 +01:00
parent 434d73c7bd
commit 8b8cd7d28b
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3

View File

@ -28,3 +28,8 @@ endif()
if(NOT CMAKE_BUILD_TYPE STREQUAL "Debug" AND NOT EMSCRIPTEN) if(NOT CMAKE_BUILD_TYPE STREQUAL "Debug" AND NOT EMSCRIPTEN)
set(CMAKE_INTERPROCEDURAL_OPTIMIZATION ON) set(CMAKE_INTERPROCEDURAL_OPTIMIZATION ON)
endif() endif()
if(EMSCRIPTEN)
add_compile_options(-pthread)
add_link_options(-pthread)
endif()