dhcpcd-discuss

Re: [PATCH] configure: support builds using ccache

Roy Marples

Sun Jun 22 10:07:34 2014

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

Thanks

Roy

Follow-Ups:
Re: [PATCH] configure: support builds using ccacheThomas De Schampheleire
References:
[PATCH] configure: support builds using ccacheThomas De Schampheleire
Re: [PATCH] configure: support builds using ccacheRoy Marples
Re: [PATCH] configure: support builds using ccacheThomas De Schampheleire
Archive administrator: postmaster@marples.name