Skip to content
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

MSVC Toolchain Support #72

Open
theduke opened this issue May 27, 2020 · 7 comments
Open

MSVC Toolchain Support #72

theduke opened this issue May 27, 2020 · 7 comments
Labels
enhancement New feature or request

Comments

@theduke
Copy link
Owner

theduke commented May 27, 2020

Provide a clean error message when building -sys on Windows with msvc.

(Just a reminder for myself)

@l0calh05t l0calh05t mentioned this issue Nov 19, 2020
3 tasks
@l0calh05t
Copy link

Would it be feasible to use https://github.com/c-smile/quickjspp instead?

l0calh05t added a commit to l0calh05t/quickjs-rs that referenced this issue Nov 19, 2020
compiles on msvc but crashes on all tests
@l0calh05t
Copy link

I tried it and while it builds on both MSVC and Linux now (haven't tried MinGW-Windows or MacOS), the tests crash instantly on Windows (ctx->rt is null in eval even though runtime wasn't null during creation). Linux tests still pass, though.

@l0calh05t
Copy link

Ok - I just noticed you don't run bindgen when using the embedded QuickJS. When building with different defines this is of course necessary. However, it isn't as trivial as just running bindgen, because JsValue is no longer a union etc.

@payallmoney
Copy link

Whether there has been any progress on this matter ? I need msvc ...

@l0calh05t
Copy link

@payallmoney Haven't gotten around to doing anything further. You can check the current state on https://github.com/l0calh05t/quickjs-rs (but the MSVC version will not build, as it requires a different FFI! it would probably be best to create functions equivalent to the macros used in the header and then use those throughout the FFI)

@payallmoney
Copy link

@payallmoney Haven't gotten around to doing anything further. You can check the current state on https://github.com/l0calh05t/quickjs-rs (but the MSVC version will not build, as it requires a different FFI! it would probably be best to create functions equivalent to the macros used in the header and then use those throughout the FFI)

Ok , i will try , thanks for your reply .

@theduke
Copy link
Owner Author

theduke commented Feb 4, 2021

There is a patch that adds msvc support here: bellard/quickjs#49

It's rather large, but I'm considering including this here.

@theduke theduke changed the title #[cfg] check for Windows msvc toolchain MSVC Toolchain Support Feb 4, 2021
@theduke theduke added the enhancement New feature or request label Feb 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants