Skip to content

Commit

Permalink
Add TBB options for ARM build
Browse files Browse the repository at this point in the history
Partial-Bug: #1551119
Change-Id: Id35ac62d910741bfd91c2503ba44049c69d8c275
  • Loading branch information
fpytloun committed Feb 29, 2016
1 parent 3c5019f commit 317f53d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion rules.py
Expand Up @@ -924,7 +924,7 @@ def SetupBuildEnvironment(conf):

AddOption('--target', dest = 'target',
action='store',
choices = ['i686', 'x86_64'])
choices = ['i686', 'x86_64', 'armhf'])

AddOption('--root', dest = 'install_root', action='store')
AddOption('--prefix', dest = 'install_prefix', action='store')
Expand Down Expand Up @@ -1009,6 +1009,8 @@ def SetupBuildEnvironment(conf):

if env.get('TARGET_MACHINE') == 'i686':
env.Append(CCFLAGS = '-march=' + 'i686')
elif env.get('TARGET_MACHINE') == 'armhf' or platform.machine().startswith('arm'):
env.Append(CCFLAGS=['-DTBB_USE_GCC_BUILTINS=1', '-D__TBB_64BIT_ATOMICS=0'])

env['TOP_BIN'] = '#build/bin'
env['TOP_INCLUDE'] = '#build/include'
Expand Down

0 comments on commit 317f53d

Please sign in to comment.