Skip to content

Commit 418c846

Browse files
lzufalconwtarreau
authored andcommitted
selftests/nolibc: libc-test: use HOSTCC instead of CC
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. Signed-off-by: Zhangjin Wu <falcon@tinylab.org> Fixes: cfb672f ("selftests/nolibc: add run-libc-test target") Signed-off-by: Willy Tarreau <w@1wt.eu>
1 parent dcb677c commit 418c846

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tools/testing/selftests/nolibc/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ nolibc-test: nolibc-test.c
178178
endif
179179

180180
libc-test: nolibc-test.c
181-
$(QUIET_CC)$(CC) -o $@ $<
181+
$(QUIET_CC)$(HOSTCC) -o $@ $<
182182

183183
# local libc-test
184184
run-libc-test: libc-test

0 commit comments

Comments
 (0)