!9750 fix a bug emulator x86_64 run cj app

Merge pull request !9750 from liuyics15/master
This commit is contained in:
openharmony_ci 2024-08-08 02:10:25 +00:00 committed by Gitee
commit 7cdb51790c
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -27,9 +27,19 @@
using namespace OHOS::AbilityRuntime;
#ifdef APP_USE_ARM64
#define APP_LIB_NAME "arm64"
#elif defined(APP_USE_ARM)
#define APP_LIB_NAME "arm"
#elif defined(APP_USE_X86_64)
#define APP_LIB_NAME "x86_64"
#else
#error unsupported platform
#endif
namespace {
const std::string DEBUGGER = "@Debugger";
const std::string SANDBOX_LIB_PATH = "/data/storage/el1/bundle/libs/arm64";
const std::string SANDBOX_LIB_PATH = "/data/storage/el1/bundle/libs/" APP_LIB_NAME;
const std::string CJ_RT_PATH = SANDBOX_LIB_PATH + "/runtime";
const std::string CJ_LIB_PATH = SANDBOX_LIB_PATH + "/ohos";
const std::string CJ_SYSLIB_PATH = "/system/lib64:/system/lib64/platformsdk:/system/lib64/module:/system/lib64/ndk";