summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@gnome.org>2021-04-12 11:29:24 +0100
committerMatthias Clasen <mclasen@redhat.com>2021-04-12 21:23:57 -0400
commita871a1bdb5df8cd221a10508c162e6def5c55a37 (patch)
treeeae10655f7d80327eec40b793bbd1655f7300b3f
parent31e08d4629a2e08bb4e1db473c74385ba8080704 (diff)
downloadgtk+-a871a1bdb5df8cd221a10508c162e6def5c55a37.tar.gz
build: Don't append multiple flags as a string
The gtk_debug_cflags variable is an array, with each argument stored in a separate string; if we add multiple arguments inside the same string we break the escaping rules. Fixes: #3864
-rw-r--r--meson.build2
1 files changed, 1 insertions, 1 deletions
diff --git a/meson.build b/meson.build
index 26cda67aba..7223431ddf 100644
--- a/meson.build
+++ b/meson.build
@@ -66,7 +66,7 @@ if debug
gtk_debug_cflags += '-DG_ENABLE_CONSISTENCY_CHECKS'
endif
elif optimization in ['2', '3', 's']
- gtk_debug_cflags += '-DG_DISABLE_CAST_CHECKS -DG_DISABLE_ASSERT'
+ gtk_debug_cflags += ['-DG_DISABLE_CAST_CHECKS', '-DG_DISABLE_ASSERT']
endif
add_project_arguments(gtk_debug_cflags, language: 'c')