meson: Unable to change any options when using `--reconfigure`, even though output shows they were changed

Describe the bug When I attempt to change c_args using --reconfigure, there is no change.

To Reproduce

When I use something like: meson gcc-build -Dc_args=-fno-common --reconfigure c_args doesn’t change. I ran meson configure gcc-build to verify. Also tried with CFLAGS=-fno-common meson gcc-build --reconfigure but got the same result.

system parameters

  • native build
  • Debian 10
  • Python 3.7.3
  • 0.54.2
  • ninja 1.8.2

About this issue

  • Original URL
  • State: open
  • Created 6 years ago
  • Reactions: 5
  • Comments: 21 (15 by maintainers)

Most upvoted comments

The question is how to bisect the fact that project(..., default_options: ['importantsetting=frob']) has changed its value and caused an issue to occur.

A related question is whether that is something that falls under “bisecting”. I can hear arguments both ways.

The same issue occurs for cpp_std. Once a build folder is configure the first time you can change cpp_std to anything you want and it will have no effect. Meson will also not raise an error if the value of cpp_std is not valid.