-
Notifications
You must be signed in to change notification settings - Fork 28
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
Could not cross-compile to Windows from ubuntu #19
Comments
I don't really understand this area of Rust builds, so if anyone else would like to figure this out I welcome it. I had introduced jemalloc earlier because it was a big performance win, but since then I have been a bit more careful about memory allocation so it's possible it's not as important anymore. |
I think the intent of this code (which is copy-pasted from the jemalloc instructions) is to not use jemalloc on Windows, so maybe that logic just needs to be adjusted to cover this case. |
# sudo apt install gcc-mingw-w64-x86-64-posix rustup target add x86_64-pc-windows-gnu cargo build --release --target=x86_64-pc-windows-gnu
Yields
It looks like this is an issue with the jemallocator crate. The crate does seem to build all the way but perhaps the linker path is not set correctly when linking to the C library.
I don't really know if this is easily solvable on the n2 side (apart from switching to a different allocator).
gnzlbg/jemallocator#165
gnzlbg/jemallocator#153
The text was updated successfully, but these errors were encountered: