<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="gmail-HOEnZb"><div class="gmail-h5"><br>
</div></div>I'd like llvm-isel-fuzzer to be added once its committed</blockquote><div><br></div><div>consider it done (once it's there)</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"> (which should<br>
be as soon as LLVM fuzzers work in release builds again). One potential<br>
issue is that llvm-isel-fuzzer is more of a collection of fuzzers, and<br>
it needs some arguments to run (ie, to choose the backend).<br></blockquote><div><br></div><div>I have the same problem with clang-proto-fuzzer, which uses the same approach with flags as llvm-isel-fuzzer. </div><div><br></div><div>The solution I was thinking about is (drum roll!) to encode the flags in the binary name, e.g. <br></div><div>"./llvm-isel-fuzzer,-flag1,-flag2" and then read these flags from argv[0] in LLVMFuzzerInitialize()<br></div><div><br></div><div>Then in oss-fuzz build.sh we will just do this:</div><div>for flags in -flag1a,-flag1b -flag2a,-flag2b; do</div><div>  cp llvm-isel-fuzzer $OUT/llvm-isel-fuzzer,$flags<br></div><div>done</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div class="gmail-HOEnZb"><div class="gmail-h5"><br>
> Who else wants to be automatically CC-ed to all trophies?<br>
> (I'll need to add your e-mail here:<br>
> <a href="https://github.com/google/oss-fuzz/blob/master/projects/llvm/project.yaml" rel="noreferrer" target="_blank">https://github.com/google/oss-<wbr>fuzz/blob/master/projects/<wbr>llvm/project.yaml</a>)<br>
><br>
><br>
>><br>
>> I hope Daniel can answer the other questions.<br>
>><br>
>><br>
>>> If no, maybe we should remove it, or move it to a separate repository.<br>
>>><br>
>>> Thanks,<br>
>>> George<br>
>>><br>
>>> (sorry for starting multiple threads, I believe this way it is more<br>
>>> convenient to keep track of tasks)<br>
>><br>
>><br>
>><br>
</div></div></blockquote></div><br></div></div>