aboutsummaryrefslogtreecommitdiffstats
path: root/mk/vendor.cc
blob: 5ddd99dca9220dd79df0d0a462161984fc4a3b07 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh

set -e 

: ${CC:=cc}

${CC} -E - <<-EOF | awk '/sunpro/||/clang/||/gcc/||/other/{ print $1; exit; }'
	#if defined __SUNPRO_C
	sunpro
	#elif defined __clang__
	clang
	#elif defined __GNUC__
	gcc
	#else
	other
	#endif
EOF