Re: [PATCH v2 3/7] selftests/nolibc: libc-test: use HOSTCC instead of CC

From: Willy Tarreau
Date: Sun Aug 13 2023 - 05:19:56 EST


On Sat, Aug 12, 2023 at 04:30:25AM +0800, Zhangjin Wu wrote:
> libc-test is mainly added to compare the behavior of nolibc to the
> system libc, it is meaningless and error-prone with cross compiling.
>
> Let's use HOSTCC instead of CC to avoid wrongly use cross compiler when
> CROSS_COMPILE is passed or customized.

Indeed. This one is actually a fix for this one, I'll pick it separately
as it's independent on this series:

85a0b029a1ce ("selftests/nolibc: add run-libc-test target")

Thanks,
Willy