Index: zorg/buildbot/builders/PollyBuilder.py =================================================================== --- zorg/buildbot/builders/PollyBuilder.py +++ zorg/buildbot/builders/PollyBuilder.py @@ -70,11 +70,16 @@ haltOnFailure=False, description=["create build dir"], workdir=".")) + cmakeCommand = ["cmake", "../%s" %llvm_srcdir, "-DCMAKE_COLOR_MAKEFILE=OFF", "-DPOLLY_TEST_DISABLE_BAR=ON", - "-DPOLLY_ENABLE_GPGPU_CODEGEN=ON", "-DCMAKE_BUILD_TYPE=Release"] + cmake_install + extraCmakeArgs + hasNVPTX = any(True for A in reversed(extraCmakeArgs) + if 'LLVM_TARGETS_TO_BUILD' in A and 'NVPTX' in A) + if hasNVPTX: # The NVPTX target is required to generate GPU code + cmakeCommand.append("-DPOLLY_ENABLE_GPGPU_CODEGEN=ON") + f.addStep(ShellCommand(name="cmake-configure", command=cmakeCommand, haltOnFailure=False,