forked from japaric/xargo
-
Notifications
You must be signed in to change notification settings - Fork 25
Open
Description
I wrote the following .cargo/config file for an arm-none-eabi target
[target.arm-none-eabi]
linker = "arm-none-eabi-gcc"
rustflags = [
"-C", "target-cpu=cortex-a8",
]
When i run cargo xbuild --target=arm-none-eabi.json it fails because it tries to link everything together with the cc linker. However when i insert "-C", "linker=arm-none-eabi-gcc" as follows
[target.arm-none-eabi]
rustflags = [
"-C", "target-cpu=cortex-a8",
"-C", "linker=arm-none-eabi-gcc"
]
It does use the arm-none-eabi-gcc linker correctly. Is xbuild actually just ignoring the linker flag (on purpose or without?) or am I supposed to do define the linker in a different way. If this actually turns out to be a bug with xbuild I'd happily try to add a fix so it picks up the linker flag.
Metadata
Metadata
Assignees
Labels
No labels