[Lldb-commits] [PATCH] Allow the specification of a "mode" property on the LLDB Builder
Zachary Turner
zturner at google.com
Wed Mar 4 10:23:51 PST 2015
Hi gkistanova, rfoos,
The idea is that, if a builder goes red because of a failed atomic operation, we should be able to enter property "mode" with value of "fresh" from the build console and get the build working again without having to log into the machine.
http://reviews.llvm.org/D8062
Files:
zorg/buildbot/builders/LLDBBuilder.py
Index: zorg/buildbot/builders/LLDBBuilder.py
===================================================================
--- zorg/buildbot/builders/LLDBBuilder.py
+++ zorg/buildbot/builders/LLDBBuilder.py
@@ -15,24 +15,25 @@
# We *must* checkout at least Clang, LLVM, and LLDB. Once we add a step to run
# tests (e.g. ninja check-lldb), we will also need to add a step for LLD, since
# MSVC LD.EXE cannot link executables with DWARF debug info.
-def getLLDBSource(f,llvmTopDir='llvm'):
+def getLLDBSource(f,svnMode,llvmTopDir='llvm'):
f.addStep(SVN(name='svn-llvm',
- mode='update', baseURL='http://llvm.org/svn/llvm-project/llvm/',
+ mode=svnMode, baseURL='http://llvm.org/svn/llvm-project/llvm/',
defaultBranch='trunk',
workdir=llvmTopDir))
f.addStep(SVN(name='svn-clang',
- mode='update', baseURL='http://llvm.org/svn/llvm-project/cfe/',
+ mode=svnMode, baseURL='http://llvm.org/svn/llvm-project/cfe/',
defaultBranch='trunk',
workdir='%s/tools/clang' % llvmTopDir))
f.addStep(SVN(name='svn-lldb',
- mode='update', baseURL='http://llvm.org/svn/llvm-project/lldb/',
+ mode=svnMode, baseURL='http://llvm.org/svn/llvm-project/lldb/',
defaultBranch='trunk',
workdir='%s/tools/lldb' % llvmTopDir))
return f
# CMake Windows builds
def getLLDBWindowsCMakeBuildFactory(
clean=False,
+ mode='update',
cmake='cmake',
jobs="%(jobs)s",
@@ -56,7 +57,7 @@
command=getVisualStudioEnvironment(vs, target_arch),
extract_fn=extractSlaveEnvironment))
- f = getLLDBSource(f,'llvm')
+ f = getLLDBSource(f,mode,'llvm')
build_cmd=['ninja']
install_cmd = ['ninja','install']
@@ -254,7 +255,7 @@
description="set build dir",
workdir="."))
# Get source code
- f = getLLDBSource(f,llvm_srcdir)
+ f = getLLDBSource(f,'update',llvm_srcdir)
# Construct cmake
cmake_args = ["cmake", "-GNinja"]
EMAIL PREFERENCES
http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D8062.21216.patch
Type: text/x-patch
Size: 2168 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20150304/fe61bcb9/attachment.bin>
More information about the lldb-commits
mailing list