mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-12 17:32:19 +00:00
Shell-script to build current directory and then link one tool (default: opt)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3727 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
993243e599
commit
631484c4e2
18
makellvm
Executable file
18
makellvm
Executable file
@ -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)
|
18
utils/makellvm
Executable file
18
utils/makellvm
Executable file
@ -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…
x
Reference in New Issue
Block a user