<div><div dir="auto">Because this is not tge only part of ghe library search algorithm, and it’s not necessarily an error if the variable isn’t set</div><br><div class="gmail_quote"><div>On Sun, Oct 22, 2017 at 1:56 PM Zhihao Yuan via Phabricator <<a href="mailto:reviews@reviews.llvm.org">reviews@reviews.llvm.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">lichray marked an inline comment as done.<br>
lichray added a comment.<br>
<br>
In <a href="https://reviews.llvm.org/D39162#903179" rel="noreferrer" target="_blank">https://reviews.llvm.org/D39162#903179</a>, @zturner wrote:<br>
<br>
> Please don't throw an exception here.  Instead, write this as:<br>
><br>
>   lit_config.warning('Unable to determine shared library path variable for platform {}'.format(platform.system()))<br>
><br>
><br>
<br>
<br>
Why a warning rather than fatal?<br>
<br>
<br>
<a href="https://reviews.llvm.org/D39162" rel="noreferrer" target="_blank">https://reviews.llvm.org/D39162</a><br>
<br>
<br>
<br>
</blockquote></div></div>