| OLD | NEW |
| 1 #!/usr/bin/python | 1 #!/usr/bin/python |
| 2 # Copyright (c) 2012 The Native Client Authors. All rights reserved. | 2 # Copyright (c) 2012 The Native Client Authors. All rights reserved. |
| 3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
| 4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
| 5 # | 5 # |
| 6 # IMPORTANT NOTE: If you make local mods to this file, you must run: | 6 # IMPORTANT NOTE: If you make local mods to this file, you must run: |
| 7 # % pnacl/build.sh driver | 7 # % pnacl/build.sh driver |
| 8 # in order for them to take effect in the scons build. This command | 8 # in order for them to take effect in the scons build. This command |
| 9 # updates the copy in the toolchain/ tree. | 9 # updates the copy in the toolchain/ tree. |
| 10 # | 10 # |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 'x8664' : 'X8664', | 52 'x8664' : 'X8664', |
| 53 | 53 |
| 54 'arm' : 'ARM', | 54 'arm' : 'ARM', |
| 55 'armv7' : 'ARM', | 55 'armv7' : 'ARM', |
| 56 'armv7a': 'ARM', | 56 'armv7a': 'ARM', |
| 57 'arm-thumb2' : 'ARM', | 57 'arm-thumb2' : 'ARM', |
| 58 | 58 |
| 59 'mips32': 'MIPS32', | 59 'mips32': 'MIPS32', |
| 60 'mips' : 'MIPS32', | 60 'mips' : 'MIPS32', |
| 61 'mipsel': 'MIPS32', | 61 'mipsel': 'MIPS32', |
| 62 |
| 63 'linux-x86-32': 'LINUX_X8632', |
| 62 } | 64 } |
| 63 if arch not in archfix: | 65 if arch not in archfix: |
| 64 Log.Fatal('Unrecognized arch "%s"!', arch) | 66 Log.Fatal('Unrecognized arch "%s"!', arch) |
| 65 return archfix[arch] | 67 return archfix[arch] |
| 66 | 68 |
| 67 class TempFileHandler(object): | 69 class TempFileHandler(object): |
| 68 def __init__(self): | 70 def __init__(self): |
| 69 self.files = [] | 71 self.files = [] |
| 70 | 72 |
| 71 def add(self, path): | 73 def add(self, path): |
| (...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 192 ret += " " | 194 ret += " " |
| 193 if grouping == 0: | 195 if grouping == 0: |
| 194 grouping = 1 | 196 grouping = 1 |
| 195 if a.startswith('-') and len(a) == 2: | 197 if a.startswith('-') and len(a) == 2: |
| 196 grouping = 2 | 198 grouping = 2 |
| 197 ret += a | 199 ret += a |
| 198 grouping -= 1 | 200 grouping -= 1 |
| 199 return ret | 201 return ret |
| 200 | 202 |
| 201 Log = LogManager() | 203 Log = LogManager() |
| OLD | NEW |