-
Notifications
You must be signed in to change notification settings - Fork 707
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
The link options are ignored. #104
Comments
What should they do? Detect if its running in |
The old behavior for this option is to create |
This is probably a good thing to ask @alexcrichton |
|
I think in the past we've preferred rustc-link-lib because having this information outside of build.rs made a mess. |
OK, for now I'll spit out I'll fix this with my docopt changes in #202. |
Hmm, I might hold off and do it separately. It's unclear when it should happen in the library use case: On |
I was expecting these options to add build.rs-based approaches aren't useful for me because I'm not using cargo to build. |
Updating stuff from a previous bindgen / rust version, and also not using cargo to build. Is there a recommended solution for this? |
@ryankurte I believe the cleanest solution for this is |
Oh right! Trouble there is that raw line only seems to accept one line, and
I have also had to blacklist and manually replace some types. Might be
cleaner for now just to cat two files together.
Cheers for the response, I will have a nosey into it if I have some time.
…On Tue, 14 Feb 2017, 1:01 AM Emilio Cobos Álvarez, ***@***.***> wrote:
@ryankurte <https://github.com/ryankurte> I believe the cleanest solution
for this is --raw-line for now. I don't have the time right now to
implement this, but I'm happy to mentor anyone wanting to do so.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#104 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AA0hzO5MJ4gtZCgiSEGFdoilMJepMCyVks5rcEYmgaJpZM4KbbEq>
.
|
I've just run into this issue when generating new bindings using the CLI (and regenerating old bindings) for the coreaudio-sys crate, specifically when linking the necessary frameworks (CoreAudio, AudioUnit, AudioToolbox, etc). The generated However if I remove the I'm unsure how to work around this in the meantime as there's a few thousand of these blocks in each module, and although I could test a few individual functions successfully my sed/grep find and replace skills are not quite up to this task of handling every function properly. Any tips on how to either work around this or fix this in rust-bindgen itself would be greatly appreciated! |
FWIW I'm getting the same issue even when generating the bindings using a |
Ah, disabling |
They do nothing, and are effectively superseded by --raw-line and friends. They also tend to confuse people. Closes rust-lang#104
options: Remove the linking-related options. They do nothing, and are effectively superseded by --raw-line and friends. They also tend to confuse people. Closes #104
It seems that I dropped them during the rewrite, can't remember if I did it accidentally or not.
In any case, we announce to support it and don't, which should be fixed either removing the option or supporting it properly.
The text was updated successfully, but these errors were encountered: