[zorg] r269529 - Removed BatchFileDownload usage, as it cannot properly render WithProperties.
Galina Kistanova via llvm-commits
llvm-commits at lists.llvm.org
Fri May 13 18:23:23 PDT 2016
Author: gkistanova
Date: Fri May 13 20:23:23 2016
New Revision: 269529
URL: http://llvm.org/viewvc/llvm-project?rev=269529&view=rev
Log:
Removed BatchFileDownload usage, as it cannot properly render WithProperties.
Modified:
zorg/trunk/zorg/buildbot/builders/LLDBBuilder.py
Modified: zorg/trunk/zorg/buildbot/builders/LLDBBuilder.py
URL: http://llvm.org/viewvc/llvm-project/zorg/trunk/zorg/buildbot/builders/LLDBBuilder.py?rev=269529&r1=269528&r2=269529&view=diff
==============================================================================
--- zorg/trunk/zorg/buildbot/builders/LLDBBuilder.py (original)
+++ zorg/trunk/zorg/buildbot/builders/LLDBBuilder.py Fri May 13 20:23:23 2016
@@ -59,7 +59,7 @@ def getLLDBWindowsCMakeBuildFactory(
config='Release',
target_arch='x86',
- extra_cmake_args=[],
+ extra_cmake_args=None,
test=False,
install=False):
@@ -101,22 +101,22 @@ def getLLDBWindowsCMakeBuildFactory(
doStepIf=cleanBuildRequested
))
- # Use batch files instead of ShellCommand directly, Windows quoting is
- # borked. FIXME: See buildbot ticket #595 and buildbot ticket #377.
-
- f.addStep(batch_file_download.BatchFileDownload(name='cmakegen',
- command=[cmake, "-G", "Ninja", "../llvm",
- "-DCMAKE_BUILD_TYPE="+config,
- '-DPYTHON_HOME=' + python_source_dir,
- "-DCMAKE_INSTALL_PREFIX=../install",
- WithProperties('-DLLDB_TEST_COMPILER=%(builddir)s/bin/clang.exe')]
- + extra_cmake_args,
- workdir=build_dir))
-
- f.addStep(ShellCommand(name='cmake',
- command=['cmakegen.bat'],
+ cmake_cmd = [
+ "cmake", "-G", "Ninja", "../llvm",
+ "-DCMAKE_BUILD_TYPE=" + config,
+ "-DPYTHON_HOME=" + python_source_dir,
+ "-DCMAKE_INSTALL_PREFIX=../install",
+ "-DLLDB_TEST_COMPILER=\"%(builddir)s/bin/clang.exe\""
+ ]
+ if extra_cmake_args:
+ cmake_cmd += extra_cmake_args
+ # Note: ShellCommand does not pass the params with special symbols right.
+ # The " ".join is a workaround for this bug.
+ f.addStep(ShellCommand(name="cmake-configure",
+ description=["cmake configure"],
+ command=WithProperties(" ".join(cmake_cmd)),
haltOnFailure=True,
- description='cmake gen',
+ warnOnWarnings=True,
workdir=build_dir,
env=Property('slave_env')))
More information about the llvm-commits
mailing list