diff options
Diffstat (limited to 'mk/vendor.cc')
-rwxr-xr-x | mk/vendor.cc | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/mk/vendor.cc b/mk/vendor.cc new file mode 100755 index 0000000..5ddd99d --- /dev/null +++ b/mk/vendor.cc @@ -0,0 +1,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 |