-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
Tracking Issue for native link modifier verbatim
#99425
Comments
Known issue: Update: this was fixed in #101806. |
rust-lang#99425 (comment) r? `@petrochenkov`
…=petrochenkov fix verbatim with upstream dependencies rust-lang#99425 (comment) r? `@petrochenkov`
Is there anything currently blocking the stabilization of this feature? |
I think it can be stabilized now, if the limitations and the caveat about full paths are well documented. |
Stabilization PR - #104360. |
…, r=petrochenkov Added linker_arg(s) Linker trait methods for link-arg to be prefixed "-Wl," for cc-like linker args and not verbatim rust-lang#99427 (comment) > here's one possible improvement to -l link-arg making it more portable between linkers and useful - befriending it with the verbatim modifier (rust-lang#99425). > > -l link-arg:-verbatim=-foo would add -Wl,-foo (or equivalent) when C compiler is used as a linker, and just -foo when bare linker is used. > -l link-arg:+verbatim=-bar on the other hand would always pass just -bar.
Rollup merge of rust-lang#118202 - azhogin:azhogin/link_args_wrapping, r=petrochenkov Added linker_arg(s) Linker trait methods for link-arg to be prefixed "-Wl," for cc-like linker args and not verbatim rust-lang#99427 (comment) > here's one possible improvement to -l link-arg making it more portable between linkers and useful - befriending it with the verbatim modifier (rust-lang#99425). > > -l link-arg:-verbatim=-foo would add -Wl,-foo (or equivalent) when C compiler is used as a linker, and just -foo when bare linker is used. > -l link-arg:+verbatim=-bar on the other hand would always pass just -bar.
This is a tracking issue for native link modifier
verbatim
, which is a part of RFC "Linking modifiers for native libraries" (#81490, rust-lang/rfcs#2951).The feature gate for the issue is
#![feature(native_link_modifiers_verbatim)]
.About tracking issues
Tracking issues are used to record the overall progress of implementation.
They are also used as hubs connecting to other relevant issues, e.g., bugs or open design questions.
A tracking issue is however not meant for large scale discussion, questions, or bug reports about a feature.
Instead, open a dedicated issue for the specific matter and add the relevant feature gate label.
Steps
Unresolved Questions
-l:libfoo.a
is not entirely verbatim, there's still no way to pass a library by full path (without the-l
option), like/path/to/libfoo.a
, while still respecting relative order of passed libraries,-C link-arg=/path/to/libfoo.a
will put the option at the end of the command line instead.-l link-arg=/path/to/libfoo.a
(#99427) will likely help with this situation.Implementation history
The text was updated successfully, but these errors were encountered: