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

Reorder subdirectory additions in CMakeLists.txt #4938

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

hanw
Copy link
Contributor

@hanw hanw commented Oct 2, 2024

Move add_subdirectory commands for frontends, midend, and control-plane before the extension processing loop. This ensures that classes declared in ir-generated.h from the frontends is available when processing extensions.

@fruffy fruffy added the core Topics concerning the core segments of the compiler (frontend, midend, parser) label Oct 2, 2024
Copy link
Contributor

@ChrisDodd ChrisDodd left a comment

Choose a reason for hiding this comment

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

The ir generator is supposed to reorder and forward declare things as needed, so the order of the .def files/directories should not matter, and you don't need to declare things before you use them. So if there are cases it is mis-ordering things in ir-generated.h, then it should be fixed there

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Topics concerning the core segments of the compiler (frontend, midend, parser)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants