From 26c3bbbe8f58c233714efae9cd758104c8de938e Mon Sep 17 00:00:00 2001
From: Rudi Heitbaum <rudi@heitbaum.com>
Date: Mon, 21 Aug 2023 19:46:18 +1000
Subject: [PATCH] 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>
---
 meson.build | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meson.build b/meson.build
index f468bad43..562326096 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 = []
-- 
GitLab