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

Unified Diff: pydir/crosstest.py

Issue 1232183002: Add an cross include path for ARM to work around clang bug 22937. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Created 5 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Makefile.standalone ('k') | pydir/targets.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pydir/crosstest.py
diff --git a/pydir/crosstest.py b/pydir/crosstest.py
index ebc33f8d763a26bb8ec3d63b4fd5ad30efbf8ca2..7a479c3963da094f0a10f4724449c7047e8dc33a 100755
--- a/pydir/crosstest.py
+++ b/pydir/crosstest.py
@@ -166,7 +166,7 @@ def main():
else:
objs.append(arg)
- # Add szrt_sb_x8632.o or szrt_native_x8632.o.
+ # Add szrt_sb_${target}.o or szrt_native_${target}.o.
objs.append((
'{root}/toolchain_build/src/subzero/build/runtime/' +
'szrt_{sb}_' + args.target + '.o'
@@ -176,12 +176,14 @@ def main():
compiler = '{bin}/{prefix}{cc}'.format(
bin=bindir, prefix='pnacl-' if args.sandbox else '',
cc='clang' if pure_c else 'clang++')
- sb_native_args = (['-O0', '--pnacl-allow-native', '-arch', 'x8632',
+ sb_native_args = (['-O0', '--pnacl-allow-native',
+ '-arch', target_info.target,
'-Wn,-defsym=__Sz_AbsoluteZero=0']
if args.sandbox else
['-g', '-target=' + triple,
'-lm', '-lpthread',
- '-Wl,--defsym=__Sz_AbsoluteZero=0'])
+ '-Wl,--defsym=__Sz_AbsoluteZero=0'] +
+ target_info.cross_headers)
shellcmd([compiler, args.driver] + objs +
['-o', os.path.join(args.dir, args.output)] + sb_native_args)
« no previous file with comments | « Makefile.standalone ('k') | pydir/targets.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698