mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-15 08:14:15 +08:00
819dd92b9c
check that CC can build executables and use that compiler instead of HOSTCC Suggested-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Alexei Starovoitov <ast@kernel.org> Signed-off-by: David S. Miller <davem@davemloft.net>
12 lines
178 B
Bash
Executable File
12 lines
178 B
Bash
Executable File
#!/bin/sh
|
|
# SPDX-License-Identifier: GPL-2.0
|
|
|
|
cat << "END" | $@ -x c - -o /dev/null >/dev/null 2>&1 && echo "y"
|
|
#include <stdio.h>
|
|
int main(void)
|
|
{
|
|
printf("");
|
|
return 0;
|
|
}
|
|
END
|