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

Unified Diff: crosstest/crosstest.py

Issue 362463002: Subzero: lower the rest of the atomic operations. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: rebase Created 6 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 | « no previous file | crosstest/runtests.sh » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: crosstest/crosstest.py
diff --git a/crosstest/crosstest.py b/crosstest/crosstest.py
index a37b10f7a76e0937f1360099eaebacc46144038d..be6c54ca51da08fe7fceef8cf5f8ec4cbd8e07f2 100755
--- a/crosstest/crosstest.py
+++ b/crosstest/crosstest.py
@@ -57,6 +57,11 @@ if __name__ == '__main__':
metavar='PATH',
help='Path to LLVM executables like llc ' +
'(defaults to $LLVM_BIN_PATH)')
+ argparser.add_argument('--crosstest-bitcode', required=False,
+ default=1, type=int,
+ help='Compile non-subzero crosstest object file ' +
+ 'from the same bitcode as the subzero object. ' +
+ 'If 0, then compile it straight from source.')
args = argparser.parse_args()
objs = []
@@ -113,7 +118,9 @@ if __name__ == '__main__':
# failures. This behavior can be inspected by switching
# use_llc between True and False.
use_llc = False
- if use_llc:
+ if not args.crosstest_bitcode:
+ objs.append(arg)
+ elif use_llc:
shellcmd([os.path.join(llvm_bin_path, 'llc'),
'-filetype=obj',
'-o=' + obj_llc,
@@ -125,4 +132,4 @@ if __name__ == '__main__':
linker = 'clang' if os.path.splitext(args.driver)[1] == '.c' else 'clang++'
shellcmd([os.path.join(llvm_bin_path, linker), '-g', '-m32', args.driver] +
objs +
- ['-lm', '-o', os.path.join(args.dir, args.output)])
+ ['-lm', '-lpthread', '-o', os.path.join(args.dir, args.output)])
« no previous file with comments | « no previous file | crosstest/runtests.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698