From dfa4e85ceae6bb51fd6db89e32579e5b60e076fd Mon Sep 17 00:00:00 2001 From: yinkaile <501251991@qq.com> Date: Thu, 26 Sep 2019 11:40:23 +0800 Subject: [PATCH] Revert "use jsc on iOS" (#1856) This reverts commit 7fbe83c3ee72833233d0c93727c6c15e8654671a. --- .../scripting/js-bindings/jswrapper/config.hpp | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/native/cocos/scripting/js-bindings/jswrapper/config.hpp b/native/cocos/scripting/js-bindings/jswrapper/config.hpp index f4d5a922c0..68e147b322 100644 --- a/native/cocos/scripting/js-bindings/jswrapper/config.hpp +++ b/native/cocos/scripting/js-bindings/jswrapper/config.hpp @@ -43,14 +43,11 @@ #endif #if TARGET_OS_IOS - // As no performance improved when using v8, so use JSC now. - // Can change to use v8 if needed. - #define SCRIPT_ENGINE_TYPE SCRIPT_ENGINE_JSC -// #ifdef __arm64__ -// #define SCRIPT_ENGINE_TYPE SCRIPT_ENGINE_V8 -// #else -// #define SCRIPT_ENGINE_TYPE SCRIPT_ENGINE_JSC -// #endif + #ifdef __arm64__ + #define SCRIPT_ENGINE_TYPE SCRIPT_ENGINE_V8 + #else + #define SCRIPT_ENGINE_TYPE SCRIPT_ENGINE_JSC + #endif #endif //TODO how to make simulator build with v8 too? Because in release mode, it will build