Bug 1194560 (follow-up) - Only build rapl on Linux if the arch is x86 or x86-64. r=glandium.

--HG--
extra : rebase_source : c115f898cb1ce8129657e3435881e4f220eca566
This commit is contained in:
Nicholas Nethercote 2015-08-20 17:02:18 -07:00
parent 7242153201
commit b83cd56ff9

View File

@ -4,8 +4,16 @@
# 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_ARCH'] == 'Darwin' and CONFIG['CPU_ARCH'] == 'x86_64') or \
(CONFIG['OS_ARCH'] == 'Linux' and CONFIG['OS_TARGET'] != 'Android'):
do_rapl = False
if CONFIG['OS_ARCH'] == 'Darwin' and CONFIG['CPU_ARCH'] == 'x86_64':
do_rapl = True
if CONFIG['OS_ARCH'] == 'Linux' and CONFIG['OS_TARGET'] != 'Android' and \
CONFIG['CPU_ARCH'] in ('x86', 'x86_64'):
do_rapl = True
if do_rapl:
SimplePrograms([
'rapl',
])