Skip to content

Fix compilation issues due to Parser.cpp not fully generated#459

Open
robertogs2 wants to merge 1 commit into
intel:developfrom
robertogs2:develop
Open

Fix compilation issues due to Parser.cpp not fully generated#459
robertogs2 wants to merge 1 commit into
intel:developfrom
robertogs2:develop

Conversation

@robertogs2
Copy link
Copy Markdown

We are hitting an error using Cmake 3.31, in which Parser.cpp is incomplete when the compilation for the hs library starts. This waits for the ragel to run to generate Parser.cpp before hitting compilation step.

Parser.cpp is produced by Ragel (Parser.rl) but was not correctly tied to
the target that compiles it (hs_compile). This caused a race condition in
parallel builds where compilation could start before generation completed,
leading to empty or incomplete output.

Attach the dependency to hs_compile to ensure correct build ordering.

Signed-off-by: Roberto Gutierrez Sanchez <roberto.gutierrez@windriver.com>
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.

1 participant