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 not build in MSVC #35
Comments
\o/ welcome to rust onig! I haven't been able to get It's interesting that you've had some success with that batch file though. Maybe we could try and detect that we're building using the MSVC toolchain and use that file rather than CMake in the onig_sys build.rs. What're your thoughts? |
@iwillspeak I think it better to make upstream oniguruma CMake works in MSVC, or we will have to detect toolchain and use make_win64/32.bat. |
On the stack overflow question: Was found by Matthieu M.:
|
That's interesting. I've got access to a Windows machine now. With any luck I'll have a go at fixing this over the weekend. |
If we are building with the MSVC toolchain then use the existing NMAKE files instead of Cmake. This is initial work on #35
If we are building with the MSVC toolchain then use the existing NMAKE files instead of Cmake. This is initial work on #35
I tested the last updates on the windows branch. I am using
Update:I run these commands, then it built successfully:
|
Thanks for giving it a test. The MSVC build is intended to be run from the Developer Command Prompt. If you want to run it from another place you'll have to add vcvars to your path. Hopefully I'll be able to get it building on CI soon and push an update to Crates.io. |
The Let me know if you encounter any problems. |
It seemed CMake is not working in oniguruma with MSVC, but use make_win64.bat works.
The text was updated successfully, but these errors were encountered: