Disable DTrace when building with OSXCROSS

This commit is contained in:
Ignacio Etcheverry 2020-04-06 16:12:01 +02:00
parent c662ffd863
commit 707eceebbc
2 changed files with 7 additions and 0 deletions

View File

@ -116,6 +116,9 @@ def setup_desktop_template(env: dict, opts: DesktopOpts, product: str, target_pl
env['_%s-%s_RANLIB' % (product, target)] = name_fmt % 'ranlib'
env['_%s-%s_CMAKE' % (product, target)] = name_fmt % 'cmake'
env['_%s-%s_STRIP' % (product, target)] = name_fmt % 'strip'
# DTrace is not available when building with OSXCROSS
CONFIGURE_FLAGS += ['--enable-dtrace=no']
else:
env['_%s-%s_CC' % (product, target)] = 'cc'

4
ios.py
View File

@ -256,6 +256,10 @@ def setup_ios_simulator_template(env: dict, opts: iOSOpts, target: str):
'--disable-crash-reporting'
]
if sys.platform != 'darwin':
# DTrace is not available when building with OSXCROSS
CONFIGURE_FLAGS += ['--enable-dtrace=no']
env['_ios-%s_AR' % target] = AR
env['_ios-%s_AS' % target] = AS
env['_ios-%s_CC' % target] = CC