mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 06:11:37 +00:00
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:
parent
7242153201
commit
b83cd56ff9
@ -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',
|
||||
])
|
||||
|
Loading…
Reference in New Issue
Block a user