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 upTracking issue for `link_args` stabilization #29596
Comments
aturon
added
T-lang
B-unstable
labels
Nov 5, 2015
This comment has been minimized.
This comment has been minimized.
|
@alexcrichton (or anyone else), any ideas what the blockers are here? |
This comment has been minimized.
This comment has been minimized.
|
From the reference:
|
This comment has been minimized.
This comment has been minimized.
|
Some thoughts of mine:
|
This comment has been minimized.
This comment has been minimized.
|
Since we do not have a good solution for now, but as a system language, it is sometimes necessary to specify args like this (even only for specific platforms), put it behind a feature gate and only letting nightly branch to use it seems to be a compromise to make. |
This comment has been minimized.
This comment has been minimized.
iwinux
commented
Feb 18, 2016
|
Got hit by this issue when trying out https://gist.github.com/jansegre/043f5ab7f53e23890eed. As LuaJIT requires, I need to link the binary with flags Could this be done without using Rust nightly? Obviously
|
This comment has been minimized.
This comment has been minimized.
|
You can use the command line flag |
This comment has been minimized.
This comment has been minimized.
|
It seems strange to allow |
This comment has been minimized.
This comment has been minimized.
|
I'd rather we fix the issue with being unable to have spaces in the linker arguments before stabilizing either of them. Unfortunately |
nrc
added
the
T-tools
label
Aug 17, 2016
japaric
referenced this issue
Sep 1, 2016
Closed
#[link_args] is not propagated from libraries to binaries #36176
panpang
referenced this issue
Jan 12, 2017
Closed
[Question] How to dllexport NvOptimusEnablement symbol to auto select dedicated Nvidia GPU? #582
Ms2ger
referenced this issue
May 1, 2017
Open
Tracking: Unstable Rust feature gates used by Servo #5286
Mark-Simulacrum
added
T-dev-tools
and removed
T-tools
labels
May 24, 2017
This comment has been minimized.
This comment has been minimized.
|
So uh, is it intentional that this became accidentally stable? #![link_args = "-l bunny"]
fn main() {}
Also it warns that the attribute is unused despite having a very obvious effect. Also we still don't have a superior |
This comment has been minimized.
This comment has been minimized.
|
@retep998 I guess its a mistake, yes. There is a working feature gate, together with a gate test, but it seems to be only active on the foreign module declaration, so |
This comment has been minimized.
This comment has been minimized.
|
But there's no reason to even tie a |
This comment has been minimized.
This comment has been minimized.
|
@retep998 I guess its simply a mistake. The bug in the feature gate is probably that way since the initial implementation e338a41 (no idea what IMO we should do one of these two things:
|
This comment has been minimized.
This comment has been minimized.
|
cc @rust-lang/compiler, it appears that there was an unintended stabilization here; decision needed. |
aturon
added
I-nominated
T-compiler
labels
Jul 3, 2017
This comment has been minimized.
This comment has been minimized.
|
Unless there's a sign of usage in the wild, I think the right answer here is to fix the broken feature gate and keep this unstable. |
This comment has been minimized.
This comment has been minimized.
|
triage: P-high We decided to try and fix this. @pnkfelix will either prep a PR or write-up some mentoring instructions. |
rust-highfive
added
P-high
and removed
I-nominated
labels
Jul 6, 2017
nikomatsakis
assigned
pnkfelix
Jul 6, 2017
This was referenced Jul 7, 2017
bors
added a commit
that referenced
this issue
Jul 10, 2017
Mark-Simulacrum
added
the
C-tracking-issue
label
Jul 22, 2017
This comment has been minimized.
This comment has been minimized.
|
Feature gate was fixed by #43109. Lowering priority. triage: P-medium |
rust-highfive
added
P-medium
and removed
P-high
labels
Jul 27, 2017
This comment has been minimized.
This comment has been minimized.
|
It seems that |
This comment has been minimized.
This comment has been minimized.
|
@vext01 I'm guessing that just isn't high enough priority to get addressed (yet)... |
aturon commentedNov 5, 2015
This issue tracks stabilization for the
#[link_args]attribute.