简体   繁体   中英

Embedder side pointer compression is DISABLED

I have built v8 8.4 for Windows as a monolithic static lib, and am trying to get this sample project running using Visual Studio 2019.

The error I get when the project runs is this:

# Fatal error in ../../src/api/api.cc, line 5619
# Embedder-vs-V8 build configuration mismatch. On embedder side pointer compression is DISABLED while on V8 side it's ENABLED.

I have tried rebuilding v8 with v8_enable_pointer_compression set to false , but v8 doesn't build. I would rather it be enabled though if possible.

To turn on pointer compression, compile your app with the compiler flags V8_COMPRESS_POINTERS and V8_31BIT_SMIS_ON_64BIT_ARCH defined (eg set to 1).

(With GCC/Clang, you'd add -DV8_COMPRESS_POINTERS to the command line; I don't know what the Visual Studio equivalent is, probably there's some build settings configuration thingie.)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM