How to compile V8 without libplatform?

39 views
Skip to first unread message

Lucian Caetano

unread,
Jun 27, 2017, 3:28:07 PM6/27/17
to v8-users
Hello, I would like to know how to compile V8 without libplatform, as I would like to implement my own event loop and my message queue, but when I do not initialize the platform I get a segmentation fault.

Ben Noordhuis

unread,
Jun 27, 2017, 3:45:29 PM6/27/17
to v8-users
You can create your own class that inherits from v8::Platform and pass
an instance to v8::V8::InitializePlatform(). That's what node.js does
to integrate V8 with its own event loop.

Omitting libplatform altogether might have been possible at one time
but I suspect it no longer is.

Lucian Caetano

unread,
Jun 28, 2017, 10:11:07 AM6/28/17
to v8-users
thank you now i understand :D
Reply all
Reply to author
Forward
0 new messages