[gtk/ebassi/issue-3864: 2/2] build: Don't append multiple flags as a string
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/ebassi/issue-3864: 2/2] build: Don't append multiple flags as a string
- Date: Mon, 12 Apr 2021 10:30:09 +0000 (UTC)
commit d37e9f708b11b52876110692cbd17a12bfec9a8c
Author: Emmanuele Bassi <ebassi gnome org>
Date: Mon Apr 12 11:29:24 2021 +0100
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
meson.build | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
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')
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]