Skip to content

Instantly share code, notes, and snippets.

@U007D
Last active February 25, 2017 03:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save U007D/8a9dd3c97614f0257a0ae3d8351523e0 to your computer and use it in GitHub Desktop.
Save U007D/8a9dd3c97614f0257a0ae3d8351523e0 to your computer and use it in GitHub Desktop.
cat ~/.cargo/config
[target.arm-none-eabi]
linker = "arm-none-eabi-gcc"
Socrates:hello bRad$ cargo build --target=arm-none-eabi
error: failed to run `rustc` to learn about target-specific information
To learn more, run the command again with --verbose.
Socrates:hello bRad$ subl ~/.cargo/config
Socrates:hello bRad$ cargo build --target=arm-none-eabi --verbose
error: failed to run `rustc` to learn about target-specific information
Caused by:
process didn't exit successfully: `rustc - --crate-name ___ --print=file-names --crate-type bin --crate-type rlib --target arm-none-eabi` (exit code: 101)
--- stderr
error: Error loading target specification: Could not find specification for target "arm-none-eabi"
|
= help: Use `--print target-list` for a list of built-in targets
Socrates:hello bRad$ cargo build --target=arm-none-eabi --print target-list
error: Unknown flag: '--print'
Usage:
cargo build [options]
Socrates:hello bRad$ cargo build --print target-list
error: Unknown flag: '--print'
Usage:
cargo build [options]
Socrates:hello bRad$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment