[pacman-dev] [PATCH 1/2] meson: use better check for debug builds
meson 0.48 added the 'debug' and 'optimization' builtin options, which
bidirectionally map to the buildtype, but in some cases where debug is
enabled, the builtype may be custom. Checking the 'debug' option lets us
detect every case currently detected, plus a few more, and does so in a
shorter and more concise manner.
Signed-off-by: Eli Schwartz
meson.build gets two-space indents, but our global tabbed default was
overriding this.
Signed-off-by: Eli Schwartz
On 5/5/20 2:41 pm, Eli Schwartz wrote:
meson.build gets two-space indents, but our global tabbed default was overriding this.
Signed-off-by: Eli Schwartz
--- .editorconfig | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.editorconfig b/.editorconfig index efea87bf..220ffbc8 100644 --- a/.editorconfig +++ b/.editorconfig @@ -16,5 +16,9 @@ indent_style = tab [{NEWS,HACKING}] indent_style = space
+[meson.build] +indent_style = space +indent_size = 2 + [*.py] indent_style = space
OK.
On 5/5/20 2:41 pm, Eli Schwartz wrote:
meson 0.48 added the 'debug' and 'optimization' builtin options, which bidirectionally map to the buildtype, but in some cases where debug is enabled, the builtype may be custom. Checking the 'debug' option lets us detect every case currently detected, plus a few more, and does so in a shorter and more concise manner.
Signed-off-by: Eli Schwartz
---
OK.
participants (2)
-
Allan McRae
-
Eli Schwartz