mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-05 13:26:55 +00:00
Simplify significantly (and fix syntax error).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3730 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -6,20 +6,11 @@ set LLVMDIR = $THISEXEC:h
|
||||
set EXEC = opt
|
||||
|
||||
if ($#argv > 0) then
|
||||
if (&& $argv[1] == "-h") then
|
||||
if ($argv[1] == "-h") then
|
||||
echo 'USAGE: makellvm [toolname] (toolname defaults to "opt").'
|
||||
exit 0
|
||||
endif
|
||||
|
||||
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
|
||||
set EXEC = $argv[1]
|
||||
endif
|
||||
|
||||
gnumake && (cd $LLVMDIR/tools/$EXEC && gnumake)
|
||||
|
Reference in New Issue
Block a user