| 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 """NEXE building script | 6 """NEXE building script |
| 7 | 7 |
| 8 This module will take a set of source files, include paths, library paths, and | 8 This module will take a set of source files, include paths, library paths, and |
| 9 additional arguments, and use them to build. | 9 additional arguments, and use them to build. |
| 10 """ | 10 """ |
| (...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 165 elif arch == 'mips': | 165 elif arch == 'mips': |
| 166 self.is_pnacl_toolchain = True | 166 self.is_pnacl_toolchain = True |
| 167 elif arch == 'pnacl': | 167 elif arch == 'pnacl': |
| 168 self.is_pnacl_toolchain = True | 168 self.is_pnacl_toolchain = True |
| 169 else: | 169 else: |
| 170 raise Error('Toolchain architecture %s not supported.' % arch) | 170 raise Error('Toolchain architecture %s not supported.' % arch) |
| 171 | 171 |
| 172 if toolname not in ['newlib', 'glibc']: | 172 if toolname not in ['newlib', 'glibc']: |
| 173 raise Error('Toolchain of type %s not supported.' % toolname) | 173 raise Error('Toolchain of type %s not supported.' % toolname) |
| 174 | 174 |
| 175 if arch == 'arm' and toolname == 'glibc': | |
| 176 raise Error('arm glibc not yet supported.') | |
| 177 | |
| 178 if arch == 'mips' and toolname == 'glibc': | 175 if arch == 'mips' and toolname == 'glibc': |
| 179 raise Error('mips glibc not supported.') | 176 raise Error('mips glibc not supported.') |
| 180 | 177 |
| 181 if arch == 'pnacl' and toolname == 'glibc': | 178 if arch == 'pnacl' and toolname == 'glibc': |
| 182 raise Error('pnacl glibc not yet supported.') | 179 raise Error('pnacl glibc not yet supported.') |
| 183 | 180 |
| 184 if self.is_pnacl_toolchain: | 181 if self.is_pnacl_toolchain: |
| 185 self.tool_prefix = 'pnacl-' | 182 self.tool_prefix = 'pnacl-' |
| 186 tool_subdir = 'pnacl_newlib' | 183 tool_subdir = 'pnacl_newlib' |
| 187 elif self.is_nacl_clang: | 184 elif self.is_nacl_clang: |
| (...skipping 943 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1131 if build is not None: | 1128 if build is not None: |
| 1132 build.EmitDeferredLog() | 1129 build.EmitDeferredLog() |
| 1133 return 1 | 1130 return 1 |
| 1134 except: | 1131 except: |
| 1135 if build is not None: | 1132 if build is not None: |
| 1136 build.EmitDeferredLog() | 1133 build.EmitDeferredLog() |
| 1137 raise | 1134 raise |
| 1138 | 1135 |
| 1139 if __name__ == '__main__': | 1136 if __name__ == '__main__': |
| 1140 sys.exit(Main(sys.argv)) | 1137 sys.exit(Main(sys.argv)) |
| OLD | NEW |