[PATCH] D15870: [test-suite] Add CMake option to use host-timeit

Chad Rosier via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 6 07:37:14 PST 2016


mcrosier updated the summary for this revision.
mcrosier updated this revision to Diff 44122.
mcrosier added a comment.

Address Matthias' nit.


http://reviews.llvm.org/D15870

Files:
  lit.cfg

Index: lit.cfg
===================================================================
--- lit.cfg
+++ lit.cfg
@@ -116,7 +116,9 @@
     runsafely_prefix = [ runsafely ]
     if workdir is not None:
         runsafely_prefix += [ "-d", workdir ]
+    timeit = "%s/tools/timeit" % config.test_source_root
     if config.remote_host:
+        timeit = "%s/tools/timeit-target" % config.test_source_root
         runsafely_prefix += [ "-r", config.remote_host ]
         if config.remote_user:
             runsafely_prefix += [ "-l", config.remote_user ]
@@ -135,7 +137,6 @@
     else:
         if stdout is not None or stderr is not None:
             raise Exception("separate stdout/stderr redirection not possible with traditional output")
-    timeit = "%s/tools/timeit-target" % config.test_source_root
     timeout = "7200"
     if stdin is None:
         stdin = "/dev/null"


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D15870.44122.patch
Type: text/x-patch
Size: 876 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160106/04617879/attachment.bin>


More information about the llvm-commits mailing list