Skip to content

Can't specify linker arguments with space in them #35440

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
jethrogb opened this issue Aug 6, 2016 · 3 comments
Closed

Can't specify linker arguments with space in them #35440

jethrogb opened this issue Aug 6, 2016 · 3 comments

Comments

@jethrogb
Copy link
Contributor

jethrogb commented Aug 6, 2016

Executing rustc -C link-args=... results in the ... being split by whitespace and each element being supplied as a single argument to the linker. This means it's not possible to specify a linker argument with whitespace in it (for example, a path to a linker script) on the command line. The same applies to the #[link_args] attribute. Possible solutions are parsing some kind of escaping (fragile) and allowing setting multiple link-arg arguments, each of which individually is not whitespace-split.

@sanxiyn
Copy link
Member

sanxiyn commented Aug 7, 2016

See rust-lang/rfcs#1509 for a discussion and a design.

@japaric
Copy link
Member

japaric commented Sep 21, 2016

allowing setting multiple link-arg arguments

#36574 implements this

@sanxiyn
Copy link
Member

sanxiyn commented Sep 30, 2016

Fixed by #36574.

@sanxiyn sanxiyn closed this as completed Sep 30, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants