Does ninja not recognise changes to meson.build file? #9755
-
meson.build
I execute
All works fine but if I edit meson.build and change the default library to static
and execute The only way I've been able to get it to work is by executing |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
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. |
Beta Was this translation helpful? Give feedback.
-
Thanks for your time eli. I'm new to meson (indeed any build software) and what I'm confused about is this. You said in your first post |
Beta Was this translation helpful? Give feedback.
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.