Chromium Code Reviews| 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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 50 'TRANSLATE_FLAGS_USER': '', | 50 'TRANSLATE_FLAGS_USER': '', |
| 51 | 51 |
| 52 'OPT_FLAGS': '-O${OPT_LEVEL} ${OPT_STRIP_%STRIP_MODE%} ' + | 52 'OPT_FLAGS': '-O${OPT_LEVEL} ${OPT_STRIP_%STRIP_MODE%} ' + |
| 53 '-inline-threshold=${OPT_INLINE_THRESHOLD}', | 53 '-inline-threshold=${OPT_INLINE_THRESHOLD}', |
| 54 'OPT_INLINE_THRESHOLD': '100', | 54 'OPT_INLINE_THRESHOLD': '100', |
| 55 'OPT_LEVEL': '0', | 55 'OPT_LEVEL': '0', |
| 56 'OPT_STRIP_none': '', | 56 'OPT_STRIP_none': '', |
| 57 'OPT_STRIP_all': '-disable-opt --strip', | 57 'OPT_STRIP_all': '-disable-opt --strip', |
| 58 'OPT_STRIP_debug': '-disable-opt --strip-debug', | 58 'OPT_STRIP_debug': '-disable-opt --strip-debug', |
| 59 | 59 |
| 60 'GOLD_PLUGIN_ARGS': '-plugin=${GOLD_PLUGIN_SO} ' + | 60 'GOLD_PLUGIN_ARGS': '-plugin=LLVMgold ' + |
|
jvoung - send to chromium...
2012/02/18 00:10:39
can the GOLD_PLUGIN_SO variable be removed too?
pdox
2012/02/18 00:15:59
Done.
| |
| 61 '-plugin-opt=emit-llvm', | 61 '-plugin-opt=emit-llvm', |
| 62 | 62 |
| 63 'LD_FLAGS' : '-nostdlib ${@AddPrefix:-L:SEARCH_DIRS} ' + | 63 'LD_FLAGS' : '-nostdlib ${@AddPrefix:-L:SEARCH_DIRS} ' + |
| 64 '${SHARED ? -shared} ${STATIC ? -static} ' + | 64 '${SHARED ? -shared} ${STATIC ? -static} ' + |
| 65 '${RELOCATABLE ? -relocatable} ' + | 65 '${RELOCATABLE ? -relocatable} ' + |
| 66 '${#SONAME ? --soname=${SONAME}}', | 66 '${#SONAME ? --soname=${SONAME}}', |
| 67 | 67 |
| 68 # Flags for native linking. | 68 # Flags for native linking. |
| 69 # Only allowed if ALLOW_NATIVE is true. | 69 # Only allowed if ALLOW_NATIVE is true. |
| 70 'LD_FLAGS_NATIVE': '', | 70 'LD_FLAGS_NATIVE': '', |
| (...skipping 333 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 404 RunDriver('translate', args) | 404 RunDriver('translate', args) |
| 405 | 405 |
| 406 def LinkBC(inputs, output): | 406 def LinkBC(inputs, output): |
| 407 '''Input: a bunch of bc/o/lib input files | 407 '''Input: a bunch of bc/o/lib input files |
| 408 Output: a combined & optimized bitcode file | 408 Output: a combined & optimized bitcode file |
| 409 ''' | 409 ''' |
| 410 # Produce combined bitcode file | 410 # Produce combined bitcode file |
| 411 RunWithEnv('${RUN_BCLD}', | 411 RunWithEnv('${RUN_BCLD}', |
| 412 inputs=inputs, | 412 inputs=inputs, |
| 413 output=output) | 413 output=output) |
| OLD | NEW |