mirror of
https://github.com/torvalds/linux.git
synced 2024-12-12 06:02:38 +00: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
|