Building on Windows #11
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Hello. When I build (on Windows) the following error is given:
I can get the ssr and hydrate builds to both work, outside of
cargo leptos watchby setting, only for the hydrate build,CC=zig ccandAR=zig ar. If these variables are set for the ssr build it fails with the error:This makes me think I need to set the two variables conditionally, based on compilation to wasm32-unknown-unknown or on the feature hydrate. I don't know how to configure this within the cargo leptos system.
I've looked at https://doc.rust-lang.org/nightly/cargo/reference/config.html#env but I don't think it supports this conditional. I also considered the
[[*.metadata.leptos]]parameterlib-cargo-args = []but I don't know how to pass an environment variable here.I'm probably just missing the point. Any guidance would be appreciated. :)
changed the description
Same issue here! Any workaround?
Hi again,
Following this documentation https://docs.rs/cc/latest/cc/#compile-time-requirements, I just added cl.exe (MSVC) to PATH environment variable and it works!
That's nice to know. Ring is often making problems (not only on windows), but I'll add that information to some troubleshooting guide! Thanks! ❤️
Another option can be to install clang for Windows from here: https://github.com/llvm/llvm-project/releases