Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/marian-nmt/intgemm.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKenneth Heafield <kpu@users.noreply.github.com>2020-12-01 14:00:01 +0300
committerGitHub <noreply@github.com>2020-12-01 14:00:01 +0300
commit1318506945c0dfc0af8f24be15be31323140c40a (patch)
tree6166e412b575541e38b0f932917af0b2a2fdaa87
parented081ba03efb2826a082038404d10b044a45f27e (diff)
parenta01874186703025369b72479181a0d34c47cd93c (diff)
Merge pull request #81 from abhi-agg/master
WASM: Disable Pthreads + memory growth warning to be an error
-rw-r--r--CMakeLists.txt6
1 files changed, 6 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 67f18ef..9089827 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -14,6 +14,12 @@ if(MSVC)
add_compile_options(/W4 /WX)
else()
add_compile_options(-Wall -Wextra -pedantic -Werror -Wno-unknown-pragmas)
+ if (COMPILE_WASM)
+ # Disabling Pthreads + memory growth warning to be an error for WASM
+ # Pthreads + memory growth causes JS accessing the wasm memory to be slow
+ # https://github.com/WebAssembly/design/issues/1271
+ add_compile_options(-Wno-error=pthreads-mem-growth)
+ endif()
endif()
# Check if compiler supports AVX2 (this should only catch emscripten)