-
Notifications
You must be signed in to change notification settings - Fork 324
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
[RTG][python] fix populateDialectRTGTestSubmodule
namespacing
#8078
base: main
Are you sure you want to change the base?
[RTG][python] fix populateDialectRTGTestSubmodule
namespacing
#8078
Conversation
Given Wouldn't compilation with We could enclose the function definition in an |
admittedly I'm doing something unconventional - I'm building y'alls Python bindings but downstream of you. In such a setup,
Nah because something like Anyway this is actually moot (I don't need to build all of CIRCT's dialects so I don't need this module at all actually). Up to you if you want to me to get this across the finish line or just close. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change looks innocuous enough to me, though the discussion about whether or not it's compiled should be resolved into an issue or not.
I am running in to this issue as well, but I don't think this is the right fix. LLVM has a coding standard against this, as it should really be a compilation error. Here is what I am seeing: In the top level cmake file for circt, we add this flag to all libraries: Lines 608 to 610 in c67ae28
I personally would have expected the interface library to add this definition, so that when the sources get built it includes this flag. I was able to get this working by adding the definition to the interface library manually in
I tried two versions of cmake, 3.23 and 3.27, and saw the issue. @maerhart does not see this issue using version 3.31.3. |
If
CIRCT_INCLUDE_TESTS=OFF
but this source file is compiled (only to eventually be DCEd)circt::python::populateDialectRTGTestSubmodule
is malformed. With explicitnamespace circt::python
it works both ways.