-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Platform-specific linker
option ignored when specified using cfg
syntax
#12472
Comments
This section of Delved into the history, it seems that just nobody requested for that.
However, the mechanisms of plain target-triple and @ehuss the wise, was there any reason not supporting cargo/tests/testsuite/tool_paths.rs Lines 365 to 367 in 7e9de3f
|
I don't think there is a specific reason other than nobody needed it. If we add it, I suppose it should follow the same logic as |
Thanks for quick reply! Here are pointers for people wanting to jump in on adding
@rustbot label -S-needs-info +S-accepted +E-easy Assumed it is not too hard, though I might be wron. |
@rustbot claim |
Problem
When the following is placed in
.cargo/config.toml
, thelinker
option is respected (on an x86_64 Linux system):However, when the
cfg
syntax is used, as in the following, thelinker
option seems to be ignored (-C linker=clang
isn't visible incargo -vv
output):In either case, the
rustflags
option is respected.Is the
linker
option being ignored here a bug?Steps
No response
Possible Solution(s)
No response
Notes
No response
Version
The text was updated successfully, but these errors were encountered: