summaryrefslogtreecommitdiff
path: root/mk/vendor.cc
diff options
context:
space:
mode:
authorwilliam <william@25tandclement.com>2013-12-09 21:05:17 -0800
committerwilliam <william@25tandclement.com>2013-12-09 21:05:17 -0800
commitfbd452885694da66156e95f671ab364cfe157bef (patch)
tree0c9f0752ef7ff5693447ccfd64c1e4800a961fc7 /mk/vendor.cc
parentd4aa420319bff15a6f84f679c6374dda7cf1b0f2 (diff)
downloadluaossl-fbd452885694da66156e95f671ab364cfe157bef.tar.gz
luaossl-fbd452885694da66156e95f671ab364cfe157bef.tar.bz2
luaossl-fbd452885694da66156e95f671ab364cfe157bef.zip
copy over build files from cqueues
Diffstat (limited to 'mk/vendor.cc')
-rwxr-xr-xmk/vendor.cc17
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 @@
1#!/bin/sh
2
3set -e
4
5: ${CC:=cc}
6
7${CC} -E - <<-EOF | awk '/sunpro/||/clang/||/gcc/||/other/{ print $1; exit; }'
8 #if defined __SUNPRO_C
9 sunpro
10 #elif defined __clang__
11 clang
12 #elif defined __GNUC__
13 gcc
14 #else
15 other
16 #endif
17EOF