-
Notifications
You must be signed in to change notification settings - Fork 154
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't build for electron on Windows #132
Comments
Did this work before on an earlier version of Electron or is it possible this has always been broken? Could you give this diff a shot? diff --git a/src/isolate/platform_delegate.h b/src/isolate/platform_delegate.h
index d6c2a97..ab031dd 100644
--- a/src/isolate/platform_delegate.h
+++ b/src/isolate/platform_delegate.h
@@ -86,7 +86,7 @@ class PlatformDelegate : public v8::Platform {
PlatformDelegate(v8::Isolate* node_isolate, v8::Platform* node_platform) : node_isolate(node_isolate), node_platform(node_platform) {}
static PlatformDelegate& DelegateInstance() {
- static PlatformDelegate delegate(v8::Isolate::GetCurrent(), v8::internal::V8::GetCurrentPlatform());
+ static PlatformDelegate delegate(v8::Isolate::GetCurrent(), node::GetMainThreadMultiIsolatePlatform());
return delegate;
}
|
With this diff now there is only one error:
The last working version was isolated-vm@1.5.2 with electron@2.0.0-beta.7, but we didn't try to build any intermediates. |
Ok I created a new |
That worked, thanks for the super quick response! |
Well no. Build worked, but the module doesn't load. This code hangs up and doesn't output anything after
|
I took a look at this for a while today and I think it's going to be tough to get this into Electron with the changes that they've made to their build process. I need access to an internal v8 API that they've stripped from their binaries. There's two options for now: I'm also going to reach out the nodejs team on #133 about the issue because I think it's a more general problem than one that just affects isolated-vm. |
OK, thanks, we'll have to consider it. Meanwhile, it looks like electron 2.0.18 builds and works well with isolated-vm 1.7.5, so we'll continue shipping it. |
We're having issues with building isolated-vm for electron on Windows. We're trying electron 4.x branch since it ships nodejs 10. This is what I get when trying to build isolated-vm 2.0.1 against electron 4.2.12 using MSBuild 2017:
Building with local Node.js 10.16.3 works fine. Building for electron on Linux also works fine.
Note: there is a small unrelated problem with node-gyp 6.0.0 which we had to overcome using this workaround.
The text was updated successfully, but these errors were encountered: