<div dir="auto">But GetExecutablePath isn't called if -no-canonical-prefixes is passed, is it? (See the first link I pasted above)</div><br><div class="gmail_quote"><div dir="ltr">On Tue, May 29, 2018, 5:28 PM Takuto Ikuta via Phabricator via cfe-commits <<a href="mailto:cfe-commits@lists.llvm.org">cfe-commits@lists.llvm.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">takuto.ikuta added a comment.<br>
<br>
On windows, argv0 is changed to absolute path before we call GetExecutablePath.<br>
That makes resource-dir absolute.<br>
I need clang-cl on windows has relative --resource-dir.<br>
<br>
See around heres.<br>
<a href="https://github.com/llvm-project/llvm-project-20170507/blob/83b39c10b1d7a9189b7ee646212eccf6e61dcfbf/clang/tools/driver/driver.cpp#L323" rel="noreferrer noreferrer" target="_blank">https://github.com/llvm-project/llvm-project-20170507/blob/83b39c10b1d7a9189b7ee646212eccf6e61dcfbf/clang/tools/driver/driver.cpp#L323</a><br>
<a href="https://github.com/llvm-project/llvm-project-20170507/blob/ca50c5d758541decdb59330fb15fe6b73ba6467d/llvm/lib/Support/InitLLVM.cpp#L28" rel="noreferrer noreferrer" target="_blank">https://github.com/llvm-project/llvm-project-20170507/blob/ca50c5d758541decdb59330fb15fe6b73ba6467d/llvm/lib/Support/InitLLVM.cpp#L28</a><br>
<br>
<br>
<a href="https://reviews.llvm.org/D47480" rel="noreferrer noreferrer" target="_blank">https://reviews.llvm.org/D47480</a><br>
<br>
<br>
<br>
_______________________________________________<br>
cfe-commits mailing list<br>
<a href="mailto:cfe-commits@lists.llvm.org" target="_blank" rel="noreferrer">cfe-commits@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits" rel="noreferrer noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits</a><br>
</blockquote></div>