diff --git a/buildbot/osuosl/master/config/builders.py b/buildbot/osuosl/master/config/builders.py --- a/buildbot/osuosl/master/config/builders.py +++ b/buildbot/osuosl/master/config/builders.py @@ -2503,42 +2503,28 @@ is_nfc=True, )}, - {'name': "bolt-x86_64-ubuntu-clang-bolt-gcc", + {'name': "bolt-x86_64-ubuntu-clang-bolt", 'tags': ["bolt"], 'workernames':["bolt-worker"], - 'builddir': "bolt-x86_64-ubuntu-clang-bolt-gcc", + 'builddir': "bolt-x86_64-ubuntu-clang-bolt", 'factory' : BOLTBuilder.getBOLTCmakeBuildFactory( bolttests=False, clean=True, - depends_on_projects=['bolt', 'clang', 'llvm'], - cache='clang/cmake/caches/BOLT.cmake', + depends_on_projects=['bolt', 'clang', 'lld', 'llvm'], + caches=[ + 'clang/cmake/caches/BOLT.cmake', + 'clang/cmake/caches/BOLT-PGO.cmake', + ], targets=['clang-bolt'], + checks=['stage2-clang-bolt'], extra_configure_args=[ "-DCMAKE_C_COMPILER=gcc", "-DCMAKE_CXX_COMPILER=g++", "-DLLVM_APPEND_VC_REV=OFF", "-DLLVM_CCACHE_BUILD=ON", - "-DBOLT_LLD_EXE=/usr/bin/ld.lld", - ], - )}, - - - {'name': "bolt-x86_64-ubuntu-clang-bolt-lto-pgo", - 'tags': ["bolt"], - 'workernames':["bolt-worker"], - 'builddir': "bolt-x86_64-ubuntu-clang-bolt-lto-pgo", - 'factory' : BOLTBuilder.getBOLTCmakeBuildFactory( - bolttests=False, - clean=True, - depends_on_projects=['bolt', 'clang', 'lld', 'llvm'], - cache='clang/cmake/caches/BOLT-PGO.cmake', - targets=['stage2-clang-bolt'], - extra_configure_args=[ - "-DLLVM_APPEND_VC_REV=OFF", "-DLLVM_ENABLE_LLD=ON", "-DBOOTSTRAP_LLVM_ENABLE_LLD=ON", "-DBOOTSTRAP_BOOTSTRAP_LLVM_ENABLE_LLD=ON", - "-DLLVM_CCACHE_BUILD=ON", "-DBOOTSTRAP_LLVM_CCACHE_BUILD=ON", "-DPGO_INSTRUMENT_LTO=Thin", ], diff --git a/zorg/buildbot/builders/BOLTBuilder.py b/zorg/buildbot/builders/BOLTBuilder.py --- a/zorg/buildbot/builders/BOLTBuilder.py +++ b/zorg/buildbot/builders/BOLTBuilder.py @@ -12,7 +12,7 @@ is_nfc = False, targets = None, checks = None, - cache = None, + caches = None, extra_configure_args = None, env = None, depends_on_projects = None, @@ -63,10 +63,9 @@ ('-G', 'Ninja'), ]) - if cache: - CmakeCommand.applyRequiredOptions(extra_configure_args, [ - ("-C", f"../{f.monorepo_dir}/{cache}"), - ]) + if caches: + for cache in caches: + extra_configure_args += [f"-C../{f.monorepo_dir}/{cache}"] addCmakeSteps( f,