[PATCH] D147803: Run ExecutionEngine/MCJIT/remote tests only if threads enabled

Youngsuk Kim via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 7 11:50:23 PDT 2023


JOE1994 created this revision.
JOE1994 added a reviewer: lhames.
Herald added a subscriber: pengfei.
Herald added a project: All.
JOE1994 requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

Using LLVM built with `LLVM_ENABLE_ASSERTION=On` & `LLVM_ENABLE_THREADS=Off`,
12 LIT tests under `llvm/test/ExecutionEngine/MCJIT/remote/` fail (on x86_64
linux host) with the same error message (and same backtrace).

Error Message:

  llvm-project/build/bin/lli-child-target error: this tool requires threads, but LLVM was built with LLVM_ENABLE_THREADS=Off

If running these tests require `LLVM_ENABLE_THREADS=On`, there's no point in
running them when using LLVM built with `LLVM_ENABLE_THREADS=Off`.  This commit
updates the appropriate `lit.local.cfg` file so that these tests are only run
if `LLVM_ENABLE_THREADS=On`.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D147803

Files:
  llvm/test/ExecutionEngine/MCJIT/remote/cross-module-a.ll
  llvm/test/ExecutionEngine/MCJIT/remote/eh.ll
  llvm/test/ExecutionEngine/MCJIT/remote/lit.local.cfg
  llvm/test/ExecutionEngine/MCJIT/remote/multi-module-a.ll
  llvm/test/ExecutionEngine/MCJIT/remote/simpletest-remote.ll
  llvm/test/ExecutionEngine/MCJIT/remote/stubs-remote.ll
  llvm/test/ExecutionEngine/MCJIT/remote/test-common-symbols-remote.ll
  llvm/test/ExecutionEngine/MCJIT/remote/test-data-align-remote.ll
  llvm/test/ExecutionEngine/MCJIT/remote/test-fp-no-external-funcs-remote.ll
  llvm/test/ExecutionEngine/MCJIT/remote/test-global-init-nonzero-remote.ll
  llvm/test/ExecutionEngine/MCJIT/remote/test-global-init-nonzero-sm-pic.ll
  llvm/test/ExecutionEngine/MCJIT/remote/test-ptr-reloc-remote.ll
  llvm/test/ExecutionEngine/MCJIT/remote/test-ptr-reloc-sm-pic.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D147803.511756.patch
Type: text/x-patch
Size: 8419 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230407/3d1a7a74/attachment.bin>


More information about the llvm-commits mailing list