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

Side by Side Diff: pnacl/driver/pnacl-driver.py

Issue 12256013: [MIPS] Fix missing definitions for MIPS arch in build and driver scripts (Closed) Base URL: http://git.chromium.org/native_client/src/native_client.git@master
Patch Set: Created 7 years, 10 months 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 unified diff | Download patch
OLDNEW
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
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__ -U__MIPSEB__',
Mark Seaborn 2013/02/13 19:17:52 Setting both __MIPSEL__ (little endian) and __MIPS
petarj 2013/02/13 20:45:02 On 2013/02/13 19:17:52, Mark Seaborn wrote: It's
Mark Seaborn 2013/02/13 20:53:17 Oh, I didn't notice that. But still, we shouldn't
petarj 2013/02/14 01:06:52 I have removed it now as I can not recall why we p
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
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)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698