forked from OSchip/llvm-project
Shell-script to build current directory and then link one tool (default: opt)
llvm-svn: 3727
This commit is contained in:
parent
580b851d23
commit
288e2ce02f
|
@ -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)
|
|
@ -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)
|
Loading…
Reference in New Issue