diff options
author | Emmanuele Bassi <ebassi@gnome.org> | 2021-04-12 11:29:24 +0100 |
---|---|---|
committer | Emmanuele Bassi <ebassi@gnome.org> | 2021-04-12 11:29:53 +0100 |
commit | d37e9f708b11b52876110692cbd17a12bfec9a8c (patch) | |
tree | 607365d8a2d09a4edb853c9672b97dcdfabe7380 | |
parent | fe6622518983795c64f7a8eccb56a5fbd4715142 (diff) | |
download | gtk+-d37e9f708b11b52876110692cbd17a12bfec9a8c.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.build | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meson.build b/meson.build index 641208158c..b1b21a8fa6 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') |