diff options
author | Evan Cheng <evan.cheng@apple.com> | 2006-06-07 05:28:07 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2006-06-07 05:28:07 +0000 |
commit | 19fd7ef7300616aa245e15e73b435c9bd0c83de3 (patch) | |
tree | 7ae61a748b009c5ffe4c6c893cc73605dc645db8 | |
parent | dc050090ea870311cfd5a39e8e5d64d2803041bd (diff) | |
download | llvm-19fd7ef7300616aa245e15e73b435c9bd0c83de3.tar.gz llvm-19fd7ef7300616aa245e15e73b435c9bd0c83de3.tar.bz2 llvm-19fd7ef7300616aa245e15e73b435c9bd0c83de3.tar.xz |
Add -extraflags FLAGS to pass extra compilation options.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28707 91177308-0d34-0410-b5e6-96231b3b80d8
-rwxr-xr-x | utils/NightlyTest.pl | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/utils/NightlyTest.pl b/utils/NightlyTest.pl index 45ebad9303..8460719346 100755 --- a/utils/NightlyTest.pl +++ b/utils/NightlyTest.pl @@ -43,6 +43,8 @@ # override the default. # -ldflags Next argument specifies that linker options that override # the default. +# -extraflags Next argument specifies extra options that are passed to +# compile the tests. # # ---------------- Options to configure llvm-test ---------------------------- # -spec2000path Path to the benchspec directory in the SPEC 2000 distro @@ -312,7 +314,7 @@ while (scalar(@ARGV) and ($_ = $ARGV[0], /^[-+]/)) { $CONFIGUREARGS .= " --with-f2c=$ARGV[0]"; shift; next; } if (/^-with-externals/) { - $CONFIGUREARGS .= "--with-externals=$ARGV[0]"; shift; next + $CONFIGUREARGS .= " --with-externals=$ARGV[0]"; shift; next } if (/^-gnuplotscript$/) { $PlotScriptFilename = $ARGV[0]; shift; next; } if (/^-templatefile$/) { $Template = $ARGV[0]; shift; next; } @@ -332,6 +334,9 @@ while (scalar(@ARGV) and ($_ = $ARGV[0], /^[-+]/)) { if (/^-ldflags/) { $MAKEOPTS = "$MAKEOPTS LD.Flags=\'$ARGV[0]\'"; shift; next; } + if (/^-extraflags/) { + $PROGTESTOPTS .= " EXTRA_FLAGS=\'$ARGV[0]\'"; shift; next; + } if (/^-noexternals$/) { $NOEXTERNALS = 1; next; } if (/^-nodejagnu$/) { $NODEJAGNU = 1; next; } if (/^-spec2000path$/) { |