diff options
author | Misha Brukman <brukman+llvm@gmail.com> | 2005-06-06 19:17:05 +0000 |
---|---|---|
committer | Misha Brukman <brukman+llvm@gmail.com> | 2005-06-06 19:17:05 +0000 |
commit | 4391bb537df68af6639b8b504f26b903b9c9cebf (patch) | |
tree | 178a1c5f3dc0057ee83d5d0f228c27f5c002f766 /utils/NightlyTest.pl | |
parent | 5e96a3a49fc1d5b4ec2b15743a93afda04c763ec (diff) | |
download | llvm-4391bb537df68af6639b8b504f26b903b9c9cebf.tar.gz llvm-4391bb537df68af6639b8b504f26b903b9c9cebf.tar.bz2 llvm-4391bb537df68af6639b8b504f26b903b9c9cebf.tar.xz |
* Add ability to specify the target LLVM will compile for via configure
* Minor whitespace cleanups
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22197 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/NightlyTest.pl')
-rwxr-xr-x | utils/NightlyTest.pl | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/utils/NightlyTest.pl b/utils/NightlyTest.pl index 3e22531641..c0159a1e6d 100755 --- a/utils/NightlyTest.pl +++ b/utils/NightlyTest.pl @@ -36,6 +36,7 @@ # -gccpath Path to gcc/g++ used to build LLVM # -cvstag Check out a specific CVS tag to build LLVM (useful for # testing release branches) +# -target Specify the target triplet # # CVSROOT is the CVS repository from which the tree will be checked out, # specified either in the full :method:user@host:/dir syntax, or @@ -272,7 +273,7 @@ while (scalar(@ARGV) and ($_ = $ARGV[0], /^[-+]/)) { if (/^-parallel$/) { $MAKEOPTS = "$MAKEOPTS -j2 -l3.0"; next; } if (/^-release$/) { $MAKEOPTS = "$MAKEOPTS ENABLE_OPTIMIZED=1"; next; } if (/^-pedantic$/) { - $MAKEOPTS = "$MAKEOPTS CompileOptimizeOpts='-O3 -DNDEBUG -finline-functions -Wpointer-arith -Wcast-align -Wno-deprecated -Wold-style-cast -Wabi -Woverloaded-virtual -ffor-scope'"; + $MAKEOPTS = "$MAKEOPTS CompileOptimizeOpts='-O3 -DNDEBUG -finline-functions -Wpointer-arith -Wcast-align -Wno-deprecated -Wold-style-cast -Wabi -Woverloaded-virtual -ffor-scope'"; next; } if (/^-enable-llcbeta$/) { $PROGTESTOPTS .= " ENABLE_LLCBETA=1"; next; } @@ -292,8 +293,11 @@ while (scalar(@ARGV) and ($_ = $ARGV[0], /^[-+]/)) { $CONFIGUREARGS .= " CC=$ARGV[0]/gcc CXX=$ARGV[0]/g++"; shift; next; } if (/^-cvstag/) { $CVSCOOPT .= " -r $ARGV[0]"; shift; next; } + if (/^-target/) { + $CONFIGUREARGS .= " --target=$ARGV[0]"; shift; next; + } if (/^-noexternals$/) { $NOEXTERNALS = 1; next; } - if(/^-nodejagnu$/) { $NODEJAGNU = 1; next; } + if (/^-nodejagnu$/) { $NODEJAGNU = 1; next; } print "Unknown option: $_ : ignoring!\n"; } |