[llvm-commits] CVS: llvm/utils/NightlyTest.pl

Evan Cheng evan.cheng at apple.com
Wed Feb 8 01:08:24 PST 2006



Changes in directory llvm/utils:

NightlyTest.pl updated: 1.103 -> 1.104
---
Log message:

Added options -cflag, -cxxflags, and -ldflags to override the default C
compilation, C++ compilation, and linker options.
e.g. This is the options I use for testing on my x86 iMac:
nice ./NightlyTest.pl -release -cflags "-Os -DNDEBUG -fomit-frame-pointer" -cxxflags "-Os -DNDEBUG -finline-functions -felide-constructors -fomit-frame-pointer"


---
Diffs of the changes:  (+15 -0)

 NightlyTest.pl |   15 +++++++++++++++
 1 files changed, 15 insertions(+)


Index: llvm/utils/NightlyTest.pl
diff -u llvm/utils/NightlyTest.pl:1.103 llvm/utils/NightlyTest.pl:1.104
--- llvm/utils/NightlyTest.pl:1.103	Wed Feb  8 01:28:22 2006
+++ llvm/utils/NightlyTest.pl	Wed Feb  8 03:08:06 2006
@@ -36,6 +36,12 @@
 #  -cvstag          Check out a specific CVS tag to build LLVM (useful for
 #                   testing release branches)
 #  -target          Specify the target triplet
+#  -cflags          Next argument specifies that C compilation options that
+#                   override the default.
+#  -cxxflags        Next argument specifies that C++ compilation options that
+#                   override the default.
+#  -ldflags         Next argument specifies that linker options that override
+#                   the default.
 #
 #  ---------------- Options to configure llvm-test ----------------------------
 #  -spec2000path    Path to the benchspec directory in the SPEC 2000 distro
@@ -299,6 +305,15 @@
   if (/^-target/)          {
     $CONFIGUREARGS .= " --target=$ARGV[0]"; shift; next;
   }
+  if (/^-cflags/)          {
+    $MAKEOPTS = "$MAKEOPTS C.Flags=\'$ARGV[0]\'"; shift; next;
+  }
+  if (/^-cxxflags/)        {
+    $MAKEOPTS = "$MAKEOPTS CXX.Flags=\'$ARGV[0]\'"; shift; next;
+  }
+  if (/^-ldflags/)         {
+    $MAKEOPTS = "$MAKEOPTS LD.Flags=\'$ARGV[0]\'"; shift; next;
+  }
   if (/^-noexternals$/)    { $NOEXTERNALS = 1; next; }
   if (/^-nodejagnu$/)      { $NODEJAGNU = 1; next; }
   if (/^-spec2000path$/)   {






More information about the llvm-commits mailing list