-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Building web-sys 3.1 fails with Windows #943
Comments
alexcrichton
added a commit
to alexcrichton/wasm-bindgen
that referenced
this issue
Oct 8, 2018
The official pathname separator on Windows is `\` instead of `/`, but we've been unconditionally using `/`. This typically works on Windows because Cargo's default `OUT_DIR` listing is a normal `C:\...` path which works with either `/` or `\`. If, however, a user sets `CARGO_TARGET_DIR` to a UNC-style path like `\\?\C:\...` then `/` is *not* the same as `\`, but rather `/` is interpreted as part of the file name (to allow file names with `/` in the name). Let's bypass all this and just use a build script output env var. Closes rustwasm#943
Thanks for the report, can't say I've run into this before? Out of curiosity do you have In any case this should be fixed in #944 |
I haven't set |
Unusual! I'm curious where the UNC path got introduced as Cargo doesn't do it by default, but regardless of where #944 should fix this. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The line at:
wasm-bindgen/crates/web-sys/src/lib.rs
Line 30 in 3001d1e
has the wrong separator for Windows and build fails with error:
The text was updated successfully, but these errors were encountered: