| 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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 # type set (using -x) unless -E is specified. | 49 # type set (using -x) unless -E is specified. |
| 50 'VERBOSE' : '0', # Verbose (-v) | 50 'VERBOSE' : '0', # Verbose (-v) |
| 51 | 51 |
| 52 'PTHREAD' : '0', # use pthreads? | 52 'PTHREAD' : '0', # use pthreads? |
| 53 'INPUTS' : '', # Input files | 53 'INPUTS' : '', # Input files |
| 54 'OUTPUT' : '', # Output file | 54 'OUTPUT' : '', # Output file |
| 55 'UNMATCHED' : '', # Unrecognized parameters | 55 'UNMATCHED' : '', # Unrecognized parameters |
| 56 | 56 |
| 57 'BIAS_NONE' : '', | 57 'BIAS_NONE' : '', |
| 58 'BIAS_ARM' : '-D__arm__ -D__ARM_ARCH_7A__ -D__ARMEL__', | 58 'BIAS_ARM' : '-D__arm__ -D__ARM_ARCH_7A__ -D__ARMEL__', |
| 59 'BIAS_MIPS32' : '-D__MIPS__ -D__mips__ -D__MIPSEL__', |
| 59 'BIAS_X8632' : '-D__i386__ -D__i386 -D__i686 -D__i686__ -D__pentium4__', | 60 'BIAS_X8632' : '-D__i386__ -D__i386 -D__i686 -D__i686__ -D__pentium4__', |
| 60 'BIAS_X8664' : '-D__amd64__ -D__amd64 -D__x86_64__ -D__x86_64 -D__core2__', | 61 'BIAS_X8664' : '-D__amd64__ -D__amd64 -D__x86_64__ -D__x86_64 -D__core2__', |
| 61 'FRONTEND_TRIPLE' : 'le32-unknown-nacl', | 62 'FRONTEND_TRIPLE' : 'le32-unknown-nacl', |
| 62 | 63 |
| 63 'OPT_LEVEL' : '', # Default for most tools is 0, but we need to know | 64 'OPT_LEVEL' : '', # Default for most tools is 0, but we need to know |
| 64 # if it's explicitly set or not when the driver | 65 # if it's explicitly set or not when the driver |
| 65 # is only used for linking + translating. | 66 # is only used for linking + translating. |
| 66 'CC_FLAGS' : '-O${#OPT_LEVEL ? ${OPT_LEVEL} : 0} ' + | 67 'CC_FLAGS' : '-O${#OPT_LEVEL ? ${OPT_LEVEL} : 0} ' + |
| 67 '-fno-common ${PTHREAD ? -pthread} ' + | 68 '-fno-common ${PTHREAD ? -pthread} ' + |
| 68 '-nostdinc ${BIAS_%BIAS%} ' + | 69 '-nostdinc ${BIAS_%BIAS%} ' + |
| (...skipping 633 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 702 -g Generate complete debug information. | 703 -g Generate complete debug information. |
| 703 -gline-tables-only Generate debug line-information only | 704 -gline-tables-only Generate debug line-information only |
| 704 (allowing for stack traces). | 705 (allowing for stack traces). |
| 705 -flimit-debug-info Generate limited debug information. | 706 -flimit-debug-info Generate limited debug information. |
| 706 -save-temps Keep intermediate compilation results. | 707 -save-temps Keep intermediate compilation results. |
| 707 -v Verbose output / show commands. | 708 -v Verbose output / show commands. |
| 708 -h | --help Show this help. | 709 -h | --help Show this help. |
| 709 --help-full Show underlying clang driver's help message | 710 --help-full Show underlying clang driver's help message |
| 710 (warning: not all options supported). | 711 (warning: not all options supported). |
| 711 """ % (tool) | 712 """ % (tool) |
| OLD | NEW |