From 193dd77ffbe1a12fa961e9365c369f45cb3cd87a Mon Sep 17 00:00:00 2001 From: Eberhard Beilharz Date: Mon, 16 Dec 2024 17:19:52 +0100 Subject: [PATCH] fix(core): fix build of unit tests Without this change building unit tests fail with an error that `--shared-memory` is disallowed. --- core/meson.build | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/meson.build b/core/meson.build index 6f0ad87db5..a481567b85 100644 --- a/core/meson.build +++ b/core/meson.build @@ -38,6 +38,9 @@ endif # shared with a number of subdirs if cpp_compiler.get_id() == 'emscripten' wasm_exported_runtime_methods = '-sEXPORTED_RUNTIME_METHODS=[\'UTF8ToString\',\'stringToNewUTF8\',\'wasmExports\']' + + # For Google Test + add_global_arguments('-pthread', language: [ 'cpp', 'c' ] ) endif subdir('docs/internal')