[llvm-commits] [zorg] r89879 - in /zorg/trunk/zorg/buildbot/builders: ClangBuilder.py LLVMBuilder.py
Daniel Dunbar
daniel at zuster.org
Wed Nov 25 13:11:08 PST 2009
Author: ddunbar
Date: Wed Nov 25 15:11:08 2009
New Revision: 89879
URL: http://llvm.org/viewvc/llvm-project?rev=89879&view=rev
Log:
Add optional argument to LLVM and Clang builders to indicate examples should be built.
Modified:
zorg/trunk/zorg/buildbot/builders/ClangBuilder.py
zorg/trunk/zorg/buildbot/builders/LLVMBuilder.py
Modified: zorg/trunk/zorg/buildbot/builders/ClangBuilder.py
URL: http://llvm.org/viewvc/llvm-project/zorg/trunk/zorg/buildbot/builders/ClangBuilder.py?rev=89879&r1=89878&r2=89879&view=diff
==============================================================================
--- zorg/trunk/zorg/buildbot/builders/ClangBuilder.py (original)
+++ zorg/trunk/zorg/buildbot/builders/ClangBuilder.py Wed Nov 25 15:11:08 2009
@@ -14,7 +14,7 @@
from Util import getConfigArgs
def getClangBuildFactory(triple=None, clean=True, test=True, run_cxx_tests=False,
- valgrind=False, useTwoStage=False,
+ examples=False, valgrind=False, useTwoStage=False,
make='make', jobs="%(jobs)s",
stage1_config='Debug', stage2_config='Release',
extra_configure_args=[]):
@@ -89,6 +89,17 @@
description=["compiling", stage1_config],
descriptionDone=["compile", stage1_config],
workdir=llvm_1_objdir))
+
+ if examples:
+ f.addStep(WarningCountingShellCommand(name="compile.examples",
+ command=['nice', '-n', '10',
+ make, WithProperties("-j%s" % jobs),
+ "BUILD_EXAMPLES=1"],
+ haltOnFailure=True,
+ description=["compilinge", stage1_config, "examples"],
+ descriptionDone=["compile", stage1_config, "examples"],
+ workdir=llvm_1_objdir))
+
clangTestArgs = '-v'
if valgrind:
clangTestArgs += ' --vg '
Modified: zorg/trunk/zorg/buildbot/builders/LLVMBuilder.py
URL: http://llvm.org/viewvc/llvm-project/zorg/trunk/zorg/buildbot/builders/LLVMBuilder.py?rev=89879&r1=89878&r2=89879&view=diff
==============================================================================
--- zorg/trunk/zorg/buildbot/builders/LLVMBuilder.py (original)
+++ zorg/trunk/zorg/buildbot/builders/LLVMBuilder.py Wed Nov 25 15:11:08 2009
@@ -10,7 +10,7 @@
from zorg.buildbot.commands.ClangTestCommand import ClangTestCommand
def getLLVMBuildFactory(triple=None, clean=True, test=True,
- expensive_checks=False,
+ expensive_checks=False, examples=False,
jobs=1, timeout=20, make='make'):
f = buildbot.process.factory.BuildFactory()
@@ -56,6 +56,16 @@
descriptionDone="compile llvm",
workdir='llvm',
timeout=timeout*60))
+ if examples:
+ f.addStep(WarningCountingShellCommand(name="compile.examples",
+ command=['nice', '-n', '10',
+ make, WithProperties("-j%s" % jobs),
+ 'BUILD_EXAMPLES=1'],
+ haltOnFailure=True,
+ description=["compiling", "llvm", "examples"],
+ descriptionDone=["compile", "llvm", "examples"],
+ workdir='llvm',
+ timeout=timeout*60))
if test:
f.addStep(ClangTestCommand(name='test-llvm',
command=[make, "check-lit", "VERBOSE=1"],
More information about the llvm-commits
mailing list