-
-
Notifications
You must be signed in to change notification settings - Fork 48
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
Build on Windows using vcpkg
#143
Comments
Nice. Do you want to update the README documentation to mention it? Or update the crate documentation in |
With your blessing I can do either or both :) |
Let's go for both then please. :) |
I've made pijul compile on Windows as well, with these instructions:
Apparently, if |
I've finally got this to work on the recommended rust toolchain. Previously discussed here #53 and #75.
On Windows, we are recommended to use
stable-msvc
/nightly-msvc
.You can install that using
scoop
, or manually here https://github.com/microsoft/vcpkg#quick-start-windowsThen, you set the following environment variables globally
That's it, this made my test project compile just fine.
Use of these environment variables is described in https://learn.microsoft.com/en-us/cpp/build/building-on-the-command-line?view=msvc-170#path_and_environment, and https://stackoverflow.com/questions/20483619/lib-vs-libpath-environment-variables-difference-for-ms-visual-c-c,
You can choose different triplet, see
vckpkg help triplet
, butx64-windows-static-md
is recommended byvcpkg-rs
.Even the
blas
-example works with this!vcpkg
would also (presumably) makeCMake
work on Windows.The text was updated successfully, but these errors were encountered: