<div dir="ltr">Sounds like a bug to me. There's a list of tool replacements in the lit configs somewhere I think, that's probably missing clang-scan-deps, I guess. (maybe we could make this mechanism more robust/less easy to skip/misuse)<br><br>Probably worth cc'ing/pulling someone into this thread who works on clang-scan-deps, folks don't always keep up on all the mailing lists.</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Jul 29, 2021 at 10:58 AM Xun Li via cfe-dev <<a href="mailto:cfe-dev@lists.llvm.org">cfe-dev@lists.llvm.org</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">I was playing with modules in Clang.<br>
And I noticed that when running Clang tests, they are using the<br>
"clang-scan-deps" tool from my host system instead of from the build<br>
dir.<br>
For example, if I do:<br>
```<br>
bin/llvm-lit ../clang/test/ClangScanDeps/modules-pch.c -a<br>
```<br>
And look at the output commands, I see things like:<br>
```<br>
: 'RUN: at line 11';   clang-scan-deps -compilation-database<br>
/Users/xun/OSS/llvm-project/build_clang/tools/clang/test/ClangScanDeps/Output/modules-pch.c.tmp/cdb.json<br>
-format experimental-full    -generate-modules-path-args -module<br>
-files-dir /Users/xun/OSS/llvm-project/build_clang/tools/clang/test/ClangScanDeps/Output/modules-pch.c.tmp/build<br>
>> /Users/xun/OSS/llvm-project/build_clang/tools/clang/test/ClangScanDeps/Output/modules-pch.c.tmp/result_pch.json<br>
```<br>
where clang-scan-deps is not using an absolute path. I verified this<br>
by adding "clang-scan-deps --version" in the test, and it matches my<br>
system version, instead of the build version.<br>
<br>
Is this a bug?<br>
<br>
-- <br>
Xun<br>
_______________________________________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@lists.llvm.org" target="_blank">cfe-dev@lists.llvm.org</a><br>
<a href="https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev" rel="noreferrer" target="_blank">https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev</a><br>
</blockquote></div>