-
Notifications
You must be signed in to change notification settings - Fork 68
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
Unsure how to handle JLL dependencies #484
Comments
One thought I have is maybe inside |
The
|
With that change, code for |
Could you provide an MWE? |
Here is an MWE: https://github.com/Octogonapus/LibAwsIO.jl/tree/clang_mwe To reproduce, you can run |
well.. you're right. it only warns a list of symbols in the system headers. those system symbols are in
|
we should add a flag for this feature and check it in the printer passes. (I thought I implemented it and I did tell everyone to use the Clang.jl/src/generator/passes.jl Line 1015 in 586f3df
|
I'm working on generating bindings for a family of JLLs (all the AWS CRT ones). Some of them depend on each other. For example,
aws_c_io_jll
depends onaws_c_common_jll
. In order to get Clang.jl to generate the bindings foraws_c_io_jll
, I need to include both it and its dependent JLLs:This makes sense from the perspective of Clang.jl needing to fully resolve the DAG to emit valid code, but it comes with a problem: the bindings for
aws_c_common_jll
are included in the output. We're trying to create a composable set of bindings packages, so we'd like to find a way to output only the bindings foraws_c_io_jll
and include the bindings for the dependencies viausing LibAwsCommon
in the generated code (another bindings package we have).To my understanding, this is not a feature Clang.jl currently has. Please do correct me if I'm wrong there. I've explored Clang.jl's implementation a bit but it is not clear to me how I could implement this. Do you have any ideas on where I could start?
cc @quinnj
The text was updated successfully, but these errors were encountered: