Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(100)

Unified Diff: tools/gn.py

Issue 2596333002: GN: Fix armsimdbc target. Add armsimdbc64 (Closed)
Patch Set: Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tools/build.py ('k') | tools/utils.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/gn.py
diff --git a/tools/gn.py b/tools/gn.py
index fd9a1b74cd00343fde872e79b1ad042c397ad6a5..93bbf1bbcf6c45406ae2ff178c0785515b46d258 100755
--- a/tools/gn.py
+++ b/tools/gn.py
@@ -31,9 +31,10 @@ def to_command_line(gn_args):
def host_cpu_for_arch(arch):
if arch in ['ia32', 'arm', 'armv6', 'armv5te', 'mips',
- 'simarm', 'simarmv6', 'simarmv5te', 'simmips', 'simdbc']:
+ 'simarm', 'simarmv6', 'simarmv5te', 'simmips', 'simdbc',
+ 'armsimdbc']:
return 'x86'
- if arch in ['x64', 'arm64', 'simarm64', 'simdbc64']:
+ if arch in ['x64', 'arm64', 'simarm64', 'simdbc64', 'armsimdbc64']:
return 'x64'
@@ -48,6 +49,10 @@ def target_cpu_for_arch(arch, target_os):
return 'arm' if target_os == 'android' else 'x86'
if arch == 'simdbc64':
return 'arm64' if target_os == 'android' else 'x64'
+ if arch == 'armsimdbc':
+ return 'arm'
+ if arch == 'armsimdbc64':
+ return 'arm64'
return arch
@@ -169,7 +174,7 @@ def process_options(args):
for arch in args.arch:
archs = ['ia32', 'x64', 'simarm', 'arm', 'simarmv6', 'armv6',
'simarmv5te', 'armv5te', 'simmips', 'mips', 'simarm64', 'arm64',
- 'simdbc', 'simdbc64', 'armsimdbc']
+ 'simdbc', 'simdbc64', 'armsimdbc', 'armsimdbc64']
if not arch in archs:
print "Unknown arch %s" % arch
return False
« no previous file with comments | « tools/build.py ('k') | tools/utils.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698