Commit bb9d11a5 by Jim Stichnoth

Subzero: Change pnacl_newlib ==> pnacl_newlib_raw in scripts.

BUG= none R=jvoung@chromium.org, kschimpf@google.com Review URL: https://codereview.chromium.org/1162903003
parent befd03ab
...@@ -20,7 +20,7 @@ if __name__ == '__main__': ...@@ -20,7 +20,7 @@ if __name__ == '__main__':
nacl_root = FindBaseNaCl() nacl_root = FindBaseNaCl()
# Prepend bin to $PATH. # Prepend bin to $PATH.
os.environ['PATH'] = ( os.environ['PATH'] = (
nacl_root + '/toolchain/linux_x86/pnacl_newlib/bin' + os.pathsep + nacl_root + '/toolchain/linux_x86/pnacl_newlib_raw/bin' + os.pathsep +
os.pathsep + os.environ['PATH']) os.pathsep + os.environ['PATH'])
try: try:
......
...@@ -72,7 +72,7 @@ def main(): ...@@ -72,7 +72,7 @@ def main():
args = argparser.parse_args() args = argparser.parse_args()
nacl_root = FindBaseNaCl() nacl_root = FindBaseNaCl()
bindir = ('{root}/toolchain/linux_x86/pnacl_newlib/bin' bindir = ('{root}/toolchain/linux_x86/pnacl_newlib_raw/bin'
.format(root=nacl_root)) .format(root=nacl_root))
triple = arch_map[args.target] + ('-nacl' if args.sandbox else '') triple = arch_map[args.target] + ('-nacl' if args.sandbox else '')
mypath = os.path.abspath(os.path.dirname(sys.argv[0])) mypath = os.path.abspath(os.path.dirname(sys.argv[0]))
......
...@@ -131,7 +131,7 @@ def main(): ...@@ -131,7 +131,7 @@ def main():
to these tools, copy them this way: to these tools, copy them this way:
cd native_client cd native_client
toolchain_build/toolchain_build_pnacl.py llvm_x86_64_linux \\ toolchain_build/toolchain_build_pnacl.py llvm_x86_64_linux \\
--install=toolchain/linux_x86/pnacl_newlib --install=toolchain/linux_x86/pnacl_newlib_raw
""" """
argparser = argparse.ArgumentParser( argparser = argparse.ArgumentParser(
description=' ' + main.__doc__, description=' ' + main.__doc__,
...@@ -153,7 +153,7 @@ def ProcessPexe(args, pexe, exe): ...@@ -153,7 +153,7 @@ def ProcessPexe(args, pexe, exe):
nacl_root = FindBaseNaCl() nacl_root = FindBaseNaCl()
path_addition = ( path_addition = (
'{root}/toolchain/linux_x86/pnacl_newlib/bin' '{root}/toolchain/linux_x86/pnacl_newlib_raw/bin'
).format(root=nacl_root) ).format(root=nacl_root)
os.environ['PATH'] = ( os.environ['PATH'] = (
'{dir}{sep}{path}' '{dir}{sep}{path}'
...@@ -286,7 +286,7 @@ def ProcessPexe(args, pexe, exe): ...@@ -286,7 +286,7 @@ def ProcessPexe(args, pexe, exe):
'{root}/../third_party/llvm-build/Release+Asserts/bin/clang' '{root}/../third_party/llvm-build/Release+Asserts/bin/clang'
).format(root=nacl_root) ).format(root=nacl_root)
if args.sandbox: if args.sandbox:
linklib = ('{root}/toolchain/linux_x86/pnacl_newlib/translator/' + linklib = ('{root}/toolchain/linux_x86/pnacl_newlib_raw/translator/' +
'x86-32/lib').format(root=nacl_root) 'x86-32/lib').format(root=nacl_root)
shellcmd(( shellcmd((
'{gold} -nostdlib --no-fix-cortex-a8 --eh-frame-hdr -z text ' + '{gold} -nostdlib --no-fix-cortex-a8 --eh-frame-hdr -z text ' +
...@@ -307,8 +307,9 @@ def ProcessPexe(args, pexe, exe): ...@@ -307,8 +307,9 @@ def ProcessPexe(args, pexe, exe):
'{ld} -m32 {partial} -o {exe} ' + '{ld} -m32 {partial} -o {exe} ' +
# Keep the rest of this command line (except szrt_native_x8632.o) in # Keep the rest of this command line (except szrt_native_x8632.o) in
# sync with RunHostLD() in pnacl-translate.py. # sync with RunHostLD() in pnacl-translate.py.
'{root}/toolchain/linux_x86/pnacl_newlib/translator/x86-32-linux/' + '{root}/toolchain/linux_x86/pnacl_newlib_raw/translator/' +
'lib/{{unsandboxed_irt,irt_random,irt_query_list}}.o ' + 'x86-32-linux/lib/' +
'{{unsandboxed_irt,irt_random,irt_query_list}}.o ' +
'{root}/toolchain_build/src/subzero/build/runtime/' + '{root}/toolchain_build/src/subzero/build/runtime/' +
'szrt_native_x8632.o -lpthread -lrt ' + 'szrt_native_x8632.o -lpthread -lrt ' +
'-Wl,--defsym=__Sz_AbsoluteZero=0' '-Wl,--defsym=__Sz_AbsoluteZero=0'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment