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

Side by Side Diff: tools/llvm/driver.py

Issue 6825060: Rename PNaCl (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client/
Patch Set: '' Created 9 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « tests/spec2k/run_all.sh ('k') | tools/llvm/non_bitcode_symbols.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/python 1 #!/usr/bin/python
2 # Copyright (c) 2011 The Native Client Authors. All rights reserved. 2 # Copyright (c) 2011 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 # This script is a replacement for llvm-gcc and llvm-g++ driver. 6 # This script is a replacement for llvm-gcc and llvm-g++ driver.
7 # It detects automatically which role it is supposed to assume. 7 # It detects automatically which role it is supposed to assume.
8 # The point of the script is to redirect builds through our own tools, 8 # The point of the script is to redirect builds through our own tools,
9 # while making these tools appear like gnu tools. 9 # while making these tools appear like gnu tools.
10 # 10 #
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 'SKIP_OPT' : '0', # Don't run OPT. This is used in cases where 102 'SKIP_OPT' : '0', # Don't run OPT. This is used in cases where
103 # OPT might break things. 103 # OPT might break things.
104 104
105 # These are filled in by env.reset() 105 # These are filled in by env.reset()
106 # TODO(pdox): It should not be necessary to auto-detect these here. Change 106 # TODO(pdox): It should not be necessary to auto-detect these here. Change
107 # detection method so that toolchain location is relative. 107 # detection method so that toolchain location is relative.
108 'BASE_NACL' : '', # Absolute path of native_client/ dir 108 'BASE_NACL' : '', # Absolute path of native_client/ dir
109 'BUILD_OS' : '', # "linux" or "darwin" 109 'BUILD_OS' : '', # "linux" or "darwin"
110 'BUILD_ARCH' : '', # "x86_64" or "i686" or "i386" 110 'BUILD_ARCH' : '', # "x86_64" or "i686" or "i386"
111 111
112 'BASE' : '${BASE_NACL}/toolchain/linux_arm-untrusted', 112 'BASE' : '${BASE_NACL}/toolchain/pnacl_${BUILD_OS}_${BUILD_ARCH}',
113 'BASE_TRUSTED' : '${BASE_NACL}/toolchain/linux_arm-trusted', 113 'BASE_TRUSTED' : '${BASE_NACL}/toolchain/linux_arm-trusted',
114 'BASE_ARM' : '${BASE}/arm-none-linux-gnueabi', 114 'BASE_ARM' : '${BASE}/arm-none-linux-gnueabi',
115 'BASE_ARM_INCLUDE': '${BASE_ARM}/arm-none-linux-gnueabi/include', 115 'BASE_ARM_INCLUDE': '${BASE_ARM}/arm-none-linux-gnueabi/include',
116 'BASE_BIN' : '${BASE}/bin', 116 'BASE_BIN' : '${BASE}/bin',
117 117
118 'DRY_RUN' : '0', 118 'DRY_RUN' : '0',
119 119
120 'LOG_TO_FILE' : '1', 120 'LOG_TO_FILE' : '1',
121 'LOG_FILENAME' : '${BASE_NACL}/toolchain/hg-log/driver.log', 121 'LOG_FILENAME' : '${BASE_NACL}/toolchain/hg-log/driver.log',
122 'LOG_FILE_SIZE_LIMIT' : str(20 * 1024 * 1024), 122 'LOG_FILE_SIZE_LIMIT' : str(20 * 1024 * 1024),
(...skipping 2008 matching lines...) Expand 10 before | Expand all | Expand 10 after
2131 ie_pat = shell.escape(ie_pat) 2131 ie_pat = shell.escape(ie_pat)
2132 RunWithLog('sed --in-place -e s/%s/%s/ "%s"' % (gd_pat, ie_pat, asm_file)) 2132 RunWithLog('sed --in-place -e s/%s/%s/ "%s"' % (gd_pat, ie_pat, asm_file))
2133 2133
2134 2134
2135 ###################################################################### 2135 ######################################################################
2136 # Invocation 2136 # Invocation
2137 ###################################################################### 2137 ######################################################################
2138 2138
2139 if __name__ == "__main__": 2139 if __name__ == "__main__":
2140 NiceExit(main(sys.argv)) 2140 NiceExit(main(sys.argv))
OLDNEW
« no previous file with comments | « tests/spec2k/run_all.sh ('k') | tools/llvm/non_bitcode_symbols.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698