<div dir="ltr"><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Feb 26, 2019 at 4:01 AM Ben Boeckel <<a href="mailto:ben.boeckel@kitware.com">ben.boeckel@kitware.com</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">On Mon, Feb 25, 2019 at 09:52:34 +0100, Manuel Klimek wrote:<br>
> In the compilation database (<br>
> <a href="https://clang.llvm.org/docs/JSONCompilationDatabase.html" rel="noreferrer" target="_blank">https://clang.llvm.org/docs/JSONCompilationDatabase.html</a>) we specify the<br>
> build dir for each file.<br>
<br>
But that is (generally) output from the build system, not the compiler.<br>
The build system knows because…well, it does. The compiler is just<br>
invoked in a working directory and given no indication of where a "root"<br>
directory is (and I think it might be silly to pass it on the command<br>
line just to have it in this file, but maybe not).</blockquote><div><br></div><div>Can't the compiler put in the current work directory it's been called with? That's what I'd expect.</div></div></div>