Skip to content
Snippets Groups Projects
Commit a5835aea authored by Jaswant Panchumarti (Kitware)'s avatar Jaswant Panchumarti (Kitware) Committed by Kitware Robot
Browse files

Merge topic 'limit-link-job-concurrency-for-wasm'


c4220333 Fix wasm file lock contention warnings with link job pools

Acked-by: default avatarKitware Robot <kwrobot@kitware.com>
Acked-by: default avatarbuildbot <buildbot@kitware.com>
Reviewed-by: default avatarMathieu Westphal (Kitware) <mathieu.westphal@kitware.com>
Reviewed-by: default avatarBen Boeckel <ben.boeckel@kitware.com>
Merge-request: !11670
parents d900c937 c4220333
No related branches found
No related tags found
No related merge requests found
......@@ -17,3 +17,12 @@ else ()
endif ()
option(VTK_WEBASSEMBLY_THREADS "Enable threading support in wasm. Adds -pthread compile and link flags." ${default_wasm_threads})
# wasm linking is already multithreaded. Here, we ensure targets are linked one at a time to avoid
# OOM errors and file lock contention.
if(CMAKE_GENERATOR MATCHES "Ninja")
set_property(GLOBAL APPEND PROPERTY JOB_POOLS wasm64_link_job_pool=1)
set(CMAKE_JOB_POOL_LINK wasm64_link_job_pool)
else ()
message(WARNING "Some targets may not link successfully! Job pooling is only available with Ninja generators.")
endif()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment