Skip to content
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

[CMake] enable install C API objects #8077

Conversation

makslevental
Copy link
Contributor

@makslevental makslevental commented Jan 13, 2025

I would like to build CIRCT Python bindings downstream of CIRCT. For this to work you need to have the so-called "aggregate objects" installed.

add_circt_public_c_api_library does DISABLE_INSTALL in order to prevent add_mlir_public_c_api_library from generating install targets that collide with those generated by add_circt_library_install but in doing so skips the install of the object file obj.${name}. So we just put that back.

EDIT: headers need to be installed too...

Copy link
Contributor

@mikeurbach mikeurbach left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The reasoning makes sense to me, and the cmake code matches what is upstream, so if this helps support your use case, this seems reasonable to me.

@makslevental makslevental merged commit f17af93 into llvm:main Jan 13, 2025
4 checks passed
@makslevental makslevental deleted the users/makslevental/enable-capi-install-objects branch January 13, 2025 20:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants