Skip to content

Conversation

@Thomasb81
Copy link
Contributor

@Thomasb81 Thomasb81 commented Jun 24, 2025

fix: #202

https://github.com/copilot/share/40721212-0984-8c84-a943-2009c082401a

Your build is failing because Meson does not know that hdlConvertor.cpp (and possibly others) depends on generated headers like verilogPreprocLexer.h. While you do generate them via a custom_target, you must pass these generated headers (or the custom target that produces them) as sources or dependencies to the targets that use them.

Currently, this explicit dependency is missing, so Meson sometimes tries to compile code before the header is generated, causing the error you see.

…pp (and possibly others) depends on generated headers like verilogPreprocLexer.h. While you do generate them via a custom_target, you must pass these generated headers (or the custom target that produces them) as sources or dependencies to the targets that use them.

Currently, this explicit dependency is missing, so Meson sometimes tries to compile code before the header is generated, causing the error you see.
@Nic30 Nic30 merged commit 36add6e into Nic30:master Jun 30, 2025
1 of 2 checks passed
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.

build command issue

2 participants