summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
Diffstat (limited to 'utils')
-rwxr-xr-xutils/makellvm18
1 files changed, 18 insertions, 0 deletions
diff --git a/utils/makellvm b/utils/makellvm
new file mode 100755
index 0000000000..b61a99ad36
--- /dev/null
+++ b/utils/makellvm
@@ -0,0 +1,18 @@
+#!/bin/csh -f
+
+set LLVMDIR = $HOME/llvm
+set EXEC = opt
+
+if ($#argv > 0) then
+ set EXEC = NO_SUCH_TOOL
+ set TOOLS = `grep DIRS ${LLVMDIR}/tools/Makefile | sed 's/DIRS[ ]*=[ ]*//'`
+ foreach T ( $TOOLS )
+ if ($argv[1] == "$T") then
+ set EXEC = $T
+ shift argv
+ break
+ endif
+ end
+endif
+
+gnumake && (cd $LLVMDIR/tools/$EXEC && gnumake)