<div dir="ltr">hi all,<div><br></div><div>Jordan, thanks for your reply. i did leave out this option for a while. :)</div><div><br></div><div>and i got another question: about '-isysroot' flag uniqueness checking. (ccc-analyzer: line 520) the current behavior insert the first usage of this flag. (although it does not check the '--sysroot' uniqueness.) i'm wondering that, shall this wrapper change or correct incorrect invocations?</div>
<div><br></div><div>i did run a test against gcc 4.9 on linux. (which shows that actually the last '-isysroot' flag wins.) here it comes:</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
$ gcc -c functional_test/divide_zero.cpp<br>$ gcc -c functional_test/divide_zero.cpp -isysroot /<br></blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
$ gcc -c functional_test/divide_zero.cpp -isysroot /tmp -isysroot /</blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
$ gcc -c functional_test/divide_zero.cpp -isysroot / -isysroot /tmp<br>In file included from functional_test/divide_zero.cpp:1:0:<br>/usr/include/c++/4.9.0/cassert:43:20: fatal error: assert.h: No such file or directory<br>
#include <assert.h><br> ^<br>compilation terminated.</blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
$<br></blockquote><div><br></div><div>another test against clang 3.4 on linux (which shows that it ignores '-isysroot' on this platform) here it comes:</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
$ clang -c functional_test/divide_zero.cpp -isysroot /tmp -isysroot / </blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
$ clang -c functional_test/divide_zero.cpp -isysroot / -isysroot /tmp <br>$ clang -c functional_test/divide_zero.cpp -isysroot /tmp <br>$ clang -c functional_test/divide_zero.cpp <br>
$ </blockquote><div><br></div><div>what do you think? or am i reading the perl code wrong about the ignorance of the multiple '-isysroot'?</div><div><br></div><div>regards,</div><div>Laszlo</div></div><div class="gmail_extra">
<br><br><div class="gmail_quote">On Thu, May 22, 2014 at 6:45 PM, Jordan Rose <span dir="ltr"><<a href="mailto:jordan_rose@apple.com" target="_blank">jordan_rose@apple.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I'm not sure. Ted, do you remember what this was for?<br>
<br>
Laszlo, you can just leave it out for now. It's certainly not something most people are using if it's off by default and not exposed in scan-build.<br>
<span class="HOEnZb"><font color="#888888"><br>
Jordan<br>
</font></span><div class="im HOEnZb"><br>
<br>
On May 22, 2014, at 1:01 , Laszlo Nagy <<a href="mailto:rizsotto.mailinglist@gmail.com">rizsotto.mailinglist@gmail.com</a>> wrote:<br>
<br>
> hi Jordan,<br>
</div><div class="HOEnZb"><div class="h5">> hi all,<br>
><br>
> i have a question related to ccc-analyzer. it is about the `Analyze` method (line 272). it does check the `$IncludeParserRejects` variable, which is initialized to zero once and has a comment "Set this to 1 if we want to include 'parser rejects' files." my question is: who will set that to 1? shall it be an environment which turn this on? can i leave it out from the rewritten version?<br>
><br>
> thanks,<br>
> Laszlo<br>
><br>
> ps.: today i could fetch the attached file. thanks for that!<br>
</div></div></blockquote></div><br></div>