Repository navigation
Use the real lit tool for lit testing - #8166
Conversation
7b13ad3 to
de90ab9
Compare
|
Ok got things fixed and cleaned up some of our FileCheck dependence a bit as well. Now with real lit we get things like placeholders for the current directory as well as the current file 🥳 |
| # Ensure FileCheck gets built. Tests don't have dependencies in CMake because | ||
| # they aren't targets. So until we fix that, we just force this to get built. | ||
| # Limiting this to when IREE_BUILD_TESTS is set prevents the installation | ||
| # below, which we use for cross-platform testing. | ||
| set_target_properties(FileCheck PROPERTIES EXCLUDE_FROM_ALL OFF) |
There was a problem hiding this comment.
Can you trigger https://buildkite.com/iree/iree-build-configurations on this PR? I want to verify that https://github.com/google/iree/blob/main/build_tools/cmake/build_runtime.sh doesn't build LLVM code
There was a problem hiding this comment.
Yes, automerge is doing that for you by merging this :-P
There was a problem hiding this comment.
Ah, automerge.. well, that will run on postsubmit anyways :P I can keep an eye on https://buildkite.com/iree/iree-build-configurations/builds/1887
aaand as I'm typing this it already finished. Looks good.
For historical reasons, we've used a custom shell script to run our lit
tests. We've made it less bad over time, but it's time to just use the
real thing. This gets the real lit tool running under Bazel (and CMake,
but that's less hard).
I hope to upstream some of this Bazel stuff, but LLVM's lit setup is
way more complicated, so checking this in here for now.
Fixes #818