summaryrefslogtreecommitdiffstats
path: root/scripts/cc-can-link.sh
blob: 208eb2825dab017a9d3fdc0bdb8beef053b5626d (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/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
OpenPOWER on IntegriCloud