<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Oct 12, 2021 at 2:13 PM Michael Kruse <<a href="mailto:llvmdev@meinersbur.de">llvmdev@meinersbur.de</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Am Di., 12. Okt. 2021 um 15:20 Uhr schrieb Mircea Trofin <<a href="mailto:mtrofin@google.com" target="_blank">mtrofin@google.com</a>>:<br>
> One thing that does come to mind, llvm-test-suite can be cloned separately from llvm-project/llvm. We'd need to point to llvm (or just llvm/utils/benchmark), and require that it be available on bots, for example. Does that cause an issue for anyone?<br>
<br>
I like to run the llvm-test-suite with other compilers as well such as<br>
gcc. It requires LIT, but that can be installed separately<br>
(<a href="https://pypi.org/project/lit/" rel="noreferrer" target="_blank">https://pypi.org/project/lit/</a>). I would already satisfied if there<br>
there is a possibility to use alternative sources of google benchmark,<br>
such as installed by the disto package manager (sudo apt install<br>
libbenchmark1) or automatically downloaded using CMake:<br>
<br>
include(FetchContent)<br>
FetchContent_Declare(googlebenchmark<br>
    GIT_REPOSITORY <a href="https://github.com/google/benchmark.git" rel="noreferrer" target="_blank">https://github.com/google/benchmark.git</a><br>
)<br>
FetchContent_MakeAvailable(googlebenchmark)<br></blockquote><div><br></div><div>We can probably have a set of steps we try on the llvm-test-suite to find the dependency, like:</div><div>1 one of: user-specified `benchmark` dir,  user-specified llvm dir, or user specified directive to 'check installed' or to 'fetch latest'</div><div>2 try a heuristic: either ../llvm/utils/benchmark, or, if that's not there, try fetching it, and if this fails, ok, can't build</div><div><br></div><div>Probably looking at ../llvm would 'just work' on the build bots, too? (meaning, without needing to change buildbot scripts)</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
Michael<br>
</blockquote></div></div>