Hi, In macOS Catalina, I added the toolchain as:
% rustup target add x86_64-pc-windows-gnu
installed mingw-w64 as:
brew install mingw-w64
Also I've CMake installed (do not know if it is required here), while running:
% cargo build --target=x86_64-pc-windows-gnu
I got error:
Compiling win v0.1.0 (/Users/hasan/AndroidStudioProjects/win)
error: linking with `gcc` failed: exit code: 1
|
= note: ld: unknown option: --nxcompat
clang: error: linker command failed with exit code 1 (use -v to see invocation)