aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRudi Heitbaum <rudi@heitbaum.com>2023-08-21 19:46:18 +1000
committerJean-Marc Valin <jmvalin@jmvalin.ca>2024-02-29 15:57:13 -0500
commit26c3bbbe8f58c233714efae9cd758104c8de938e (patch)
treeb66225df7482c178f07f9897b6445581eb2a1df1
parent23c591318e63f9f38a2d60b361230f148e29fb70 (diff)
downloadlibopus-26c3bbbe8f58c233714efae9cd758104c8de938e.tar.gz
meson fix comparison
cc.get_define returns str (not bool) Fixes: Fetching value of define "__APPLE__" : ../meson.build:316:12: ERROR: Object <[StringHolder] holds [str]: ''> of type str does not support the `bool()` operator. Signed-off-by: Jean-Marc Valin <jmvalin@jmvalin.ca>
-rw-r--r--meson.build2
1 files changed, 1 insertions, 1 deletions
diff --git a/meson.build b/meson.build
index f468bad4..56232609 100644
--- a/meson.build
+++ b/meson.build
@@ -329,7 +329,7 @@ if not opt_asm.disabled()
endif
endif
- if cc.get_define('__APPLE__')
+ if cc.get_define('__APPLE__') != ''
arm2gnu_args = ['--apple']
else
arm2gnu_args = []