From c30eca688781deb06b25a6a08297cb855aeb6ed2 Mon Sep 17 00:00:00 2001 From: Jon Turney Date: Fri, 22 Sep 2017 13:54:01 +0100 Subject: [PATCH] meson: Make it possible to build for 32-bit targets Setting glx_align64 to '' gives a null string in the arguments list passed to the compiler. This is taken as an input filename, leading to: "cc: error: : No such file or directory" Instead, assign an empty list to glx_align64, which gets flattened to nothing in the arguments list. Signed-off-by: Jon Turney Signed-off-by: Eric Anholt Reviewed-by: Eric Anholt --- include/meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/meson.build b/include/meson.build index 5eefc5f07..5cea8bbcf 100644 --- a/include/meson.build +++ b/include/meson.build @@ -31,7 +31,7 @@ else conf_data.set('X_BYTE_ORDER', 'X_BIG_ENDIAN') endif -glx_align64 = '' +glx_align64 = [] if cc.sizeof('unsigned long') == 8 conf_data.set('_XSERVER64', '1') glx_align64 = '-D__GLX_ALIGN64'