@@ -119,6 +119,7 @@ def setup(self, branch, worker, test_with_PTY=False, **kwargs):
119119 oot_kwargs = {}
120120 configure_cmd = [configure_cmd , "--prefix" , "$(PWD)/target" ]
121121 configure_cmd += self .configureFlags
122+ configure_cmd += worker .get_flags (branch , "configure" )
122123 self .addStep (
123124 Configure (command = configure_cmd , ** oot_kwargs )
124125 )
@@ -225,6 +226,7 @@ def setup(self, branch, worker, test_with_PTY=False, **kwargs):
225226 Configure (
226227 command = ["./configure" , "--prefix" , "$(PWD)/target" ]
227228 + self .configureFlags
229+ + worker .get_flags (branch , "configure" )
228230 )
229231 )
230232
@@ -620,17 +622,23 @@ class BaseWindowsBuild(BaseBuild):
620622 factory_tags = ["win32" ]
621623
622624 def setup (self , branch , worker , ** kwargs ):
623- build_command = self .build_command + self .buildFlags
625+ build_command = (
626+ self .build_command
627+ + self .buildFlags
628+ + worker .get_flags (branch , "build" )
629+ )
624630 test_command = [
625631 * self .test_command ,
626632 * self .testFlags ,
633+ * worker .get_flags (branch , "test" ),
627634 * get_j_opts (worker , 2 ),
628635 ]
629636 if not has_option ("-R" , self .testFlags ):
630637 test_command .extend ((r"--junit-xml" , JUNIT_FILENAME ))
631638 clean_command = [
632639 * self .clean_command ,
633640 * self .cleanFlags ,
641+ * worker .get_flags (branch , "clean" ),
634642 * get_j_opts (worker ),
635643 ]
636644 self .addStep (Compile (command = build_command ))
@@ -819,6 +827,7 @@ def setup(self, branch, worker, test_with_PTY=False, **kwargs):
819827 configure_cmd = list (self .host_configure_cmd )
820828 configure_cmd += ["--prefix" , "$(PWD)/target/host" ]
821829 configure_cmd += self .configureFlags + self .extra_configure_flags
830+ configure_cmd += worker .get_flags (branch , "configure" )
822831 configure_cmd += [util .Interpolate ("--build=%(prop:build_triple)s" )]
823832 configure_cmd += [f"--host={ self .host } " ]
824833 configure_cmd += ["--with-build-python=../build/python" ]
@@ -1142,6 +1151,7 @@ def py313_setup(self, branch, worker, test_with_PTY=False, **kwargs):
11421151 configure_cmd = list (self .host_configure_cmd )
11431152 configure_cmd += self .configureFlags
11441153 configure_cmd += self .extra_configure_flags
1154+ configure_cmd += worker .get_flags (branch , "configure" )
11451155 configure_cmd += [
11461156 f"--with-openssl={ support_path } /openssl" ,
11471157 f"--build={ self .arch } -apple-darwin" ,
@@ -1361,7 +1371,11 @@ class ValgrindBuild(UnixBuild):
13611371 def setup (self , branch , worker , ** kwargs ):
13621372 self .addStep (
13631373 Configure (
1364- command = ["./configure" , "--prefix" , "$(PWD)/target" ] + self .configureFlags
1374+ command = (
1375+ ["./configure" , "--prefix" , "$(PWD)/target" ]
1376+ + self .configureFlags
1377+ + worker .get_flags (branch , "configure" )
1378+ )
13651379 )
13661380 )
13671381
0 commit comments