summaryrefslogtreecommitdiff
path: root/docs/markdown/snippets/add_optimization_plain_option.md
AgeCommit message (Collapse)Author
2022-11-06Generate release notes for 0.64.Jussi Pakkanen
2022-10-09compilers: Add optimization=plain optionJan Tojnar
https://github.com/mesonbuild/meson/pull/9287 changed the `optimization=0` to pass `-O0` to the compiler. This change is reasonable by itself but unfortunately, it breaks `buildtype=plain`, which promises that “no extra build flags are used”. `buildtype=plain` is important for distros like NixOS, which manage compiler flags for optimization and hardening themselves. Let’s introduce a new optimization level that does nothing and set it as the default for `buildtype=plain`.