public inbox for buildbot@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] Separate src and build dirs for gcc_build_factory
@ 2022-07-04  0:34 Mark Wielaard
  0 siblings, 0 replies; only message in thread
From: Mark Wielaard @ 2022-07-04  0:34 UTC (permalink / raw)
  To: buildbot; +Cc: Mark Wielaard

---
 builder/master.cfg | 17 ++++++++++++++++-
 1 file changed, 16 insertions(+), 1 deletion(-)

diff --git a/builder/master.cfg b/builder/master.cfg
index 9487c2e..f8d3913 100644
--- a/builder/master.cfg
+++ b/builder/master.cfg
@@ -2356,6 +2356,20 @@ gcc_git_step = steps.Git(
         name="git checkout",
         haltOnFailure=True)
 
+gcc_build_git_step = steps.Git(
+        workdir='gcc',
+        repourl=gcc_repourl,
+        mode='full', method='fresh',
+        retryFetch=True, retry=(30,3),
+        name="git checkout",
+        haltOnFailure=True)
+
+gcc_rm_build_step = steps.ShellCommand(
+        command=["rm", "-rf",
+                 util.Interpolate ("%(prop:builddir)s/gcc-build")],
+        name="rm -rf gcc-build",
+        haltOnFailure=True)
+
 gcc_configure_step = steps.Configure(
         command=['./configure'],
         name='configure',
@@ -2401,7 +2415,8 @@ gcc_fedrawhide_x86_64_builder = util.BuilderConfig(
 c['builders'].append(gcc_fedrawhide_x86_64_builder)
 
 gcc_build_factory = util.BuildFactory()
-gcc_build_factory.addStep(gcc_git_step)
+gcc_build_factory.addStep(gcc_build_git_step)
+gcc_build_factory.addStep(gcc_rm_build_step)
 gcc_build_factory.addStep(gcc_build_configure_step)
 gcc_build_factory.addStep(steps.Compile(
         command=['make', util.Interpolate('-j%(prop:ncpus)s')],
-- 
2.30.2


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-07-04  0:36 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-04  0:34 [PATCH] Separate src and build dirs for gcc_build_factory Mark Wielaard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).