fixed for compiler error in wagner master branch

Signed-off-by: getingke <getingke@huawei.com>
Change-Id: I0bb8ef0fdc119ba1a958a2cff73d44fc51ccbb54
This commit is contained in:
getingke 2022-04-18 17:14:45 +08:00
parent c4011f7be5
commit 4a4dc2293d
2 changed files with 9 additions and 1 deletions

View File

@ -184,6 +184,10 @@ config("ark_jsruntime_common_config") {
defines += [ "ECMASCRIPT_ENABLE_TEST_STUB" ]
}
if (use_musl) {
defines += [ "PANDA_USE_MUSL" ]
}
if (is_standard_system) {
defines += [ "IS_STANDARD_SYSTEM" ]
}

View File

@ -31,8 +31,12 @@
#define ASM_JS_METHOD_NATIVE_POINTER_OFFSET (32)
#ifdef PANDA_TARGET_ARM64
#define ASM_GLUE_TO_THREAD_OFFSET (6584)
#else
#else
#ifdef PANDA_USE_MUSL
#define ASM_GLUE_TO_THREAD_OFFSET (6608)
#else
#define ASM_GLUE_TO_THREAD_OFFSET (6584)
#endif
#endif
// ecma_runtime_callinfo struct in stack
// -----------------------------