| Index: pydir/szbuild.py
|
| diff --git a/pydir/szbuild.py b/pydir/szbuild.py
|
| index e0dbfc7303999ed03fe8069d4a731624e75ef972..e88244b06f6b265faa587258745d1be74e3245c2 100755
|
| --- a/pydir/szbuild.py
|
| +++ b/pydir/szbuild.py
|
| @@ -189,6 +189,25 @@ def ProcessPexe(args, pexe, exe):
|
| shellcmd((
|
| 'nm {obj} | sed -n "s/.* [a-zA-Z] //p" > {sym}'
|
| ).format(obj=obj_llc, sym=sym_llc), echo=args.verbose)
|
| + szrt_bitcode_src = (
|
| + '{root}/toolchain_build/src/subzero/runtime/szrt_i686.ll'
|
| + ).format(root=nacl_root)
|
| + szrt_bitcode_obj = (
|
| + '{root}/toolchain_build/src/subzero/build/szrt_i686.o'
|
| + ).format(root=nacl_root)
|
| + if args.force or \
|
| + NewerThanOrNotThere(szrt_bitcode_src, szrt_bitcode_obj) or \
|
| + NewerThanOrNotThere(llcbin, szrt_bitcode_obj):
|
| + shellcmd(['pnacl-translate',
|
| + '-ffunction-sections',
|
| + '-c',
|
| + '-arch', 'x86-32-linux',
|
| + '-O2',
|
| + '--pnacl-driver-append-LLC_FLAGS_EXTRA=-externalize',
|
| + '-o', szrt_bitcode_obj] +
|
| + args.llc_args +
|
| + [szrt_bitcode_src],
|
| + echo=args.verbose)
|
| if args.force or NewerThanOrNotThere(pexe, obj_sz) or \
|
| NewerThanOrNotThere(llvm2ice, obj_sz):
|
| shellcmd([llvm2ice,
|
| @@ -259,6 +278,7 @@ def ProcessPexe(args, pexe, exe):
|
| '{root}/toolchain/linux_x86/pnacl_newlib/translator/x86-32-linux/lib/' +
|
| '{{unsandboxed_irt,irt_query_list}}.o ' +
|
| '{root}/toolchain_build/src/subzero/runtime/szrt.c ' +
|
| + szrt_bitcode_obj + ' ' +
|
| '-lpthread -lrt'
|
| ).format(partial=obj_partial, exe=exe, root=nacl_root),
|
| echo=args.verbose)
|
|
|