[K/N] Disable external calls checker for wasm target

This commit is contained in:
Pavel Kunyavskiy
2021-07-05 16:03:59 +03:00
committed by Space
parent 4c4bcb1e3e
commit 70ca222806
2 changed files with 4 additions and 1 deletions

View File

@@ -961,7 +961,8 @@ clangDebugFlags.wasm32 = -O0
lld.wasm32 = --allow-undefined --no-entry --global-base=0 --no-threads --export-dynamic
runtimeDefinitions.wasm32 = KONAN_WASM=1 KONAN_NO_FFI=1 KONAN_NO_THREADS=1 \
KONAN_NO_EXCEPTIONS=1 KONAN_INTERNAL_DLMALLOC=1 KONAN_INTERNAL_SNPRINTF=1 \
KONAN_INTERNAL_NOW=1 KONAN_NO_MEMMEM KONAN_NO_CTORS_SECTION=1 KONAN_NO_BACKTRACE=1
KONAN_INTERNAL_NOW=1 KONAN_NO_MEMMEM KONAN_NO_CTORS_SECTION=1 KONAN_NO_BACKTRACE=1 \
KONAN_NO_EXTERNAL_CALLS_CHECKER=1
# The version of Kotlin/Native compiler
compilerVersion=1.5-dev

View File

@@ -3,6 +3,7 @@
* that can be found in the LICENSE file.
*/
#ifndef KONAN_NO_EXTERNAL_CALLS_CHECKER
#include <string_view>
#include <cstring>
@@ -376,3 +377,4 @@ extern "C" RUNTIME_NOTHROW void Kotlin_mm_checkStateAtExternalFunctionCall(const
RuntimeFail("Expected kNative thread state at call of function %s by function %s", callee, caller);
}
#endif // KONAN_NO_EXTERNAL_CALLS_CHECKER