mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-30 07:14:53 +00:00
This script takes arguments so remove the check for number of arguments,
just check the first arg to see if its -topdir. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29694 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
50739225f4
commit
6ae928fc69
@ -18,13 +18,11 @@
|
|||||||
# details.
|
# details.
|
||||||
##===----------------------------------------------------------------------===##
|
##===----------------------------------------------------------------------===##
|
||||||
|
|
||||||
if test $# -gt 1 ; then
|
if test "$1" = "-topdir" ; then
|
||||||
if test "$1" = "-topdir" ; then
|
TOPDIR="$2"
|
||||||
TOPDIR="$2"
|
shift; shift;
|
||||||
shift; shift;
|
else
|
||||||
else
|
TOPDIR=`llvm-config --src-root`
|
||||||
TOPDIR=`llvm-config --src-root`
|
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if test -d "$TOPDIR" ; then
|
if test -d "$TOPDIR" ; then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user