Index: CMakeLists.txt =================================================================== --- CMakeLists.txt +++ CMakeLists.txt @@ -46,6 +46,9 @@ # Run Under configuration for RunSafely.sh (will be set in lit.site.cfg) set(TEST_SUITE_RUN_UNDER "" CACHE STRING "RunSafely.sh run-under (-u) parameter") +# Use host-compiled timeit instead of target-compiled timeit +set(TEST_SUITE_HOST_TIMEIT "" CACHE STRING "Use host-compiled timeit instead of target-compiled timeit") + # run type/benchmark size configuration (mostly for SPEC at the moment) set(TEST_SUITE_RUN_TYPE "train" CACHE STRING "Type of benchmark inputs (may be test,train or ref)") Index: lit.cfg =================================================================== --- lit.cfg +++ lit.cfg @@ -136,6 +136,8 @@ 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 + if config.host_timeit: + timeit = "%s/tools/timeit" % config.test_source_root timeout = "7200" if stdin is None: stdin = "/dev/null" Index: lit.site.cfg.in =================================================================== --- lit.site.cfg.in +++ lit.site.cfg.in @@ -7,5 +7,6 @@ config.remote_user = "@TEST_SUITE_REMOTE_USER@" config.remote_port = "@TEST_SUITE_REMOTE_PORT@" config.run_under = "@TEST_SUITE_RUN_UNDER@" +config.host_timeit = "@TEST_SUITE_HOST_TIMEIT@" lit_config.load_config(config, "@CMAKE_SOURCE_DIR@/lit.cfg")