Skip to content

Does ninja not recognise changes to meson.build file? #9755

Answered by eli-schwartz
5wattbulb asked this question in Q&A
Discussion options

You must be logged in to vote

Meson does write a build rules that causes ninja to execute the reconfigure command if meson.build is edited.

However, changes to default_options only apply when initializing a build directory from scratch, not when reconfiguring an existing one. Reconfiguring a build directory will always preserve the current value of options.

Changes to meson.build that modify, add, or remove executables, libraries, custom_targets, etc. will absolutely cause a reconfigure that then picks up the new build targets.

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
2 replies
@5wattbulb
Comment options

@eli-schwartz
Comment options

Answer selected by 5wattbulb
Comment options

You must be logged in to vote
3 replies
@eli-schwartz
Comment options

@5wattbulb
Comment options

@andy5995
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants