mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-25 09:20:50 +07: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
|