[PATCH] D150431: [lit] Add knob --run-prefix to allow developers to run LIT on a simulator when real machine is not available
Kan Shengchen via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sat May 13 07:35:39 PDT 2023
skan added a comment.
In D150431#4339970 <https://reviews.llvm.org/D150431#4339970>, @pengfei wrote:
> We had a buildbot that run with sde before, though it was removed by D143552 <https://reviews.llvm.org/D143552>. I think current LLVM test-suite infrastructure should have supported sde already. Maybe @yinyangsx can help with your problem?
Great link! It seems the variable `USER_MODE_EMULATION=1` may help. Let me try.
# litsupport/modules/timeit.py
def _mutateCommandLine(context, commandline):
timefile = context.tmpBase + ".time"
config = context.config
cmd = shellcommand.parse(commandline)
if config.user_mode_emulation:
# user_mode_emulation should be true if tests are being run via
# user-mode emulation (e.g. Qemu) and thus the host version of timeit
# should be used.
timeit_name = "timeit"
else:
timeit_name = "timeit-target"
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D150431/new/
https://reviews.llvm.org/D150431
More information about the llvm-commits
mailing list