Architecture mismatch with libcurl in cargo-apk build from source

So I was attempting to build a test app with piston for android using cargo-apk, but I found out that their "proxy-linker" passthrough didn't accept the @arguments the rust compiler creates, so I tried to build cargo-apk from source to attempt to fix this.
Unfortunately, whenever I compile with the proper (x64 or i686) vcvars.bat variables and toolchain (nightly-x86_64-pc-windows-msvc or nightly-i686-pc-windows-msvc appropriately), I end up with libcurl deciding to compile as the opposite architecture (x64 -> x86 and vice versa). More details can be found at the issue I opened including pastebins with logs and more details.
Thanks in advance!

I am also facing this issue and still haven't found a solution inat tv pro modsuper

While I'd usually ask you to open a new post given this is three years old, I am actually still active here (lurking more than posting).

I don't recall how I dealt with this issue so I'd recommend you read up on the linked GH issue and open an issue on rust_windowing/cargo-ndk-rs if you still have trouble.

Sorry I couldn't be of much help.