Re: [PATCH] configure: support builds using ccache
Thomas De Schampheleire
Sun Jun 29 13:36:00 2014
Hi Roy,
On Sun, Jun 22, 2014 at 12:07 PM, Roy Marples <roy@xxxxxxxxxxxx> wrote:
> On 22/06/2014 8:24, Thomas De Schampheleire wrote:
>>
>> Thanks.
>> Note that you can simplify that code, you do not need a temporary file for
>> that:
>>
>> if ! echo 'int main(void) {}' | ${CC} -x c -o /dev/null - 2>/dev/null;
>> then
>> ....
>> else
>> ....
>> fi
>
>
> Nice!
> http://roy.marples.name/projects/dhcpcd/ci/26bc10be2405659bdf31d690a72d377d6b67ebd4?sbs=0
It turns out that gcc for the Xtensa architecture does not allow
sending the output to /dev/null directly (reported here:
http://lists.busybox.net/pipermail/buildroot/2014-June/100343.html)
so it's better to revert the simplification and stick to the first
version you submitted.
Best regards,
Thomas
Archive administrator: postmaster@marples.name