IMO first who spotted this bug this person https://bugs.freedesktop.org/show_bug.cgi?id=109939
Announcement
Collapse
No announcement yet.
Fedora's Mesa Drivers Have Been Running Slower As They Were Accidentally Debug Builds
Collapse
X
-
Originally posted by andreano View PostWhy -Db_ndebug=true and not -Dbuildtype=release (as even suggested in the report)?
-Db_ndebug This option controls assertions in meson projects. When set to false (the default) assertions are enabled, when set to true they are disabled. This is unrelated to the buildtype; setting the latter to release will not turn off assertions.Last edited by dungeon; 26 March 2019, 10:54 AM.
- Likes 3
Comment
-
Originally posted by dungeon View Post
Because *only* explicit -Db_ndebug=true disables assertions, with meson that is not automatic like with autotools
https://www.mesa3d.org/meson.html
- Likes 3
Comment
-
Originally posted by aejsmith View PostI think that documentation is actually incorrect
Let alone that Meson's release buildtype assumes O3 and that is something not recommended for building Mesa for distros... with that some users will have a bug which is not a bug General purpose binary distros should go with plain O2 generic nondebug plus distro flagsLast edited by dungeon; 26 March 2019, 11:53 AM.
Comment
-
Originally posted by treba View Postmeson bug
EDIT:
I just tested Meson 0.45.1, and --buildtype=release (which is the right way to set buildtype to release) does not define NDEBUG on the compiler command. This is contrary to my expectation, confirms what dungeon wrote, and implies that the documentation was correct after all – it wasn't a bug.Last edited by andreano; 26 March 2019, 01:28 PM.
- Likes 1
Comment
Comment