Bug 1360322 - 3. Only build LUL on supported architectures; r=mstange

Only build LUL and its tests on ARM, x86, and x86_64, because only those
architectures are currently supported by LUL.
This commit is contained in:
Jim Chen 2017-05-03 11:36:18 -04:00
Родитель 7041014748
Коммит 3434ba087b
2 изменённых файлов: 12 добавлений и 10 удалений

Просмотреть файл

@ -49,15 +49,16 @@ if CONFIG['MOZ_GECKO_PROFILER']:
]
if CONFIG['OS_TARGET'] in ('Android', 'Linux'):
UNIFIED_SOURCES += [
'lul/AutoObjectMapper.cpp',
'lul/LulCommon.cpp',
'lul/LulDwarf.cpp',
'lul/LulDwarfSummariser.cpp',
'lul/LulElf.cpp',
'lul/LulMain.cpp',
'lul/platform-linux-lul.cpp',
]
if CONFIG['CPU_ARCH'] in ('arm', 'x86', 'x86_64'):
UNIFIED_SOURCES += [
'lul/AutoObjectMapper.cpp',
'lul/LulCommon.cpp',
'lul/LulDwarf.cpp',
'lul/LulDwarfSummariser.cpp',
'lul/LulElf.cpp',
'lul/LulMain.cpp',
'lul/platform-linux-lul.cpp',
]
# These files cannot be built in unified mode because of name clashes with mozglue headers on Android.
SOURCES += [
'core/shared-libraries-linux.cc',

Просмотреть файл

@ -4,7 +4,8 @@
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, you can obtain one at http://mozilla.org/MPL/2.0/.
if CONFIG['OS_TARGET'] in ('Android', 'Linux'):
if (CONFIG['OS_TARGET'] in ('Android', 'Linux') and
CONFIG['CPU_ARCH'] in ('arm', 'x86', 'x86_64')):
UNIFIED_SOURCES += [
'LulTest.cpp',
'LulTestDwarf.cpp',