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>
This commit is contained in:
Rudi Heitbaum 2023-08-21 19:46:18 +10:00 committed by Jean-Marc Valin
parent 23c591318e
commit 26c3bbbe8f
No known key found for this signature in database
GPG key ID: 5E5DD9A36F9189C8

View file

@ -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 = []