[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [creduce-dev] Finding `clang' at Run Time (Re: multifile creduce)



On 10/20/2015 11:51 PM, John Regehr wrote:
I would probably lean towards feeding this kind of information to
clang_delta using an environment variable rather than pushing it through
C-Reduce.  How does that strike people?

That would suit me perfectly, I just didn't think about that solution.

/ Johan



John



On 10/20/15 11:48 PM, Eric Eide wrote:
John Regehr <regehr@cs.utah.edu> writes:

We can definitely find a clang to run -- we already find clang-format for
example.

I'll mention that we (attempt to) find `clang-format' at configure time, and if
we find it, we burn the pathname into the script.

If we need to invoke clang at run time, I would suggest using the same
configure-time approach for finding the binary.

I haven't looked a the whole patch, but the snippet that Yang quoted does not
find clang in the way described above.

Eric.