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

Ninja can't track changes in generated files properly #418

Open
Hsilgos opened this issue Jul 6, 2020 · 0 comments
Open

Ninja can't track changes in generated files properly #418

Hsilgos opened this issue Jul 6, 2020 · 0 comments
Labels

Comments

@Hsilgos
Copy link
Contributor

Hsilgos commented Jul 6, 2020

When lime files are changed it trigger custom step to regenerate code. It triggers to recompile *_glue.cpp because they are specified as OUTPUT of custom command which runs runGenerate.cmake. But no generated headers are specified as OUTPUT (because mainly it's unknown at configuration time which headers will be generated). So ninja doesn't recompile code which includes those headers (at this run right after lime file is changed). It's necessary to trigger build again to recompile rest of code.

May be one of possible solutions is to specify common headers which are included in other generated headers as OUTPUT?

@DanielKamkha DanielKamkha changed the title Ninja can't track changes properly. Ninja can't track changes in generated files properly Jul 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants