From a81e96bd5449cc576aaaef343fe0fe6989d46692 Mon Sep 17 00:00:00 2001 From: PatriceJiang <397136899@qq.com> Date: Tue, 12 May 2020 18:31:45 +0800 Subject: [PATCH] add flag V8_COMPRESS_POINTERS --- android/CMakeLists.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/android/CMakeLists.txt b/android/CMakeLists.txt index 4eb0d676..0b86d356 100644 --- a/android/CMakeLists.txt +++ b/android/CMakeLists.txt @@ -74,9 +74,12 @@ if(USE_SE_V8) IMPORTED_LOCATION ${platform_spec_path}/v8/libv8_monolith.a INTERFACE_INCLUDE_DIRECTORIES ${platform_spec_path}/include/v8 ) + + if(ANDROID_ABI STREQUAL "arm64-v8a" OR ANDROID_ABI STREQUAL "x86_64") + set_property(TARGET v8_monolith APPEND PROPERTY INTERFACE_COMPILE_DEFINITIONS V8_COMPRESS_POINTERS) + endif() set(se_libs_name v8_monolith) - endif() if(USE_SOCKET)