summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon Turney <jon.turney@dronecode.org.uk>2017-09-22 13:54:01 +0100
committerEric Anholt <eric@anholt.net>2017-09-23 22:47:36 -0700
commitc30eca688781deb06b25a6a08297cb855aeb6ed2 (patch)
treef5eb4ba0a2c9daee01e8070ff1028fac1f55903f
parent2c2e1b6f57753a82c7ca144a57950f9e2d76199e (diff)
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 <jon.turney@dronecode.org.uk> Signed-off-by: Eric Anholt <eric@anholt.net> Reviewed-by: Eric Anholt <eric@anholt.net>
-rw-r--r--include/meson.build2
1 files changed, 1 insertions, 1 deletions
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'