Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upInfer executable path #15
Comments
japaric
added
help wanted
Blocks Rust 2018
labels
Aug 2, 2018
japaric
added this to the RC1 milestone
Aug 2, 2018
This comment has been minimized.
This comment has been minimized.
|
Inferring the path should be done for these tools: |
japaric
self-assigned this
Aug 7, 2018
This comment has been minimized.
This comment has been minimized.
|
Working on this because having to type the full path annoys me to no end. |
japaric
referenced this issue
Aug 25, 2018
Closed
error: unable to get target for 'riscv32imac-unknown-none-elf' #17
japaric
added a commit
that referenced
this issue
Aug 26, 2018
This comment has been minimized.
This comment has been minimized.
|
PR #20 implements this |
bors bot
added a commit
that referenced
this issue
Aug 28, 2018
bors
bot
closed this
in
#20
Aug 28, 2018
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
japaric commentedAug 2, 2018
cargo objdump -- -d -no-show-raw-insn target/thumbv7m-none-eabi/debug/appis too long to write and redundant if you working on a binary crate. Let's havecargo-binutilsinfer the path of the executable. At the end we should be able to just writecargo objdump -- -d -no-show-raw-insn.Here's what the logic should do (this may contain some errors / holes):
--use that and don't try to infer the pathCARGO_TARGET_DIRis set use that$workspace_root/target$crate_root/target(XXX what about--manifest-path?)thumbv7m-none-eabi) to the path.--releasebefore--usereleaseas the next path segment; otherwise usedebugas the next path segment--example $Ebefore--appendexamples/$Eto the path.--bin $Bbefore--append$Bto the pathsrc/main.rsexists) append the crate name to the pathsrc/main.rsis missing) error out (XXX we could check this earlier)tools_args