scons+meson: suppress spammy build warning on MacOS
authorEric Engestrom <eric.engestrom@intel.com>
Tue, 30 Jul 2019 14:41:06 +0000 (15:41 +0100)
committerEric Engestrom <eric.engestrom@intel.com>
Tue, 30 Jul 2019 22:21:42 +0000 (23:21 +0100)
Originally introduced in c7f36574506838274460 ("darwin: Suppress type
conversion warnings for GLhandleARB") to fix Bugzilla #66346 [1], this
workaround was never ported to Scons or Meson.

[1] https://bugs.freedesktop.org/66346

Cc: mesa-stable@lists.freedesktop.org
Signed-off-by: Eric Engestrom <eric.engestrom@intel.com>
Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
meson.build
scons/gallium.py

index c9f96e7135d0320aeae9c5b15fa8158fd4138c10..7e8fee2ee2a1c62efe199f06babdbbccecff8b5a 100644 (file)
@@ -252,6 +252,7 @@ endif
 
 if host_machine.system() == 'darwin'
   with_dri_platform = 'apple'
+  pre_args += '-DBUILDING_MESA'
 elif ['windows', 'cygwin'].contains(host_machine.system())
   with_dri_platform = 'windows'
 elif system_has_kms_drm
index 6d5b2fccc17319b7eddf9687926ee273be0d5a2a..f208c638a0dcccf8d83c9004e56b3d2a1fb3d206 100755 (executable)
@@ -352,6 +352,7 @@ def generate(env):
                 '_DARWIN_C_SOURCE',
                 'GLX_USE_APPLEGL',
                 'GLX_DIRECT_RENDERING',
+                'BUILDING_MESA',
             ]
         else:
             cppdefines += [