cargo-nx
cargo-nx copied to clipboard
[Help] I have a problem when building
I want to build one example but when I build I obtain this (I'm on windows 11 and I have rust installed)
Building and generating NRO...
Triple: aarch64-nintendo-switch
error: failed to run `rustc` to learn about target-specific information
Caused by:
process didn't exit successfully: `rustc - --crate-name ___ --print=file-names --target aarch64-nintendo-switch --crate-type bin --crate-type rlib --crate-type dylib --crate-type cdylib --crate-type staticlib --crate-type proc-macro --print=sysroot --print=cfg` (exit code: 1)
--- stderr
error: Error loading target specification: SyntaxError(InvalidEscape, 10, 27). Run `rustc --print target-list` for a list of built-in targets
I'm getting the same issue, did you get this fixed?
For anyone having this problem, use cargo nx build -t aarch64-nintendo-switch-freestanding
Also, make sure it's installed by using rustup target add aarch64-nintendo-switch-freestanding
and that you are using the nightly build of rust
Is this still an issue after the last commits?