@@ -67,13 +67,6 @@ class UnixBuild(BaseBuild):
6767 test_environ = {}
6868 build_out_of_tree = False
6969
70- def workdir (self , * parts ):
71- """Calculate the working dir to change to.
72-
73- Designed to be used with the `workdir` argument to e.g. ShellCommand.
74- """
75- return os .path .join ("build" , * parts )
76-
7770 def setup (self , parallel , branch , test_with_PTY = False , ** kwargs ):
7871 out_of_tree_dir = "build_oot"
7972
@@ -89,7 +82,7 @@ def setup(self, parallel, branch, test_with_PTY=False, **kwargs):
8982
9083 if self .build_out_of_tree :
9184 configure_cmd = "../configure"
92- oot_kwargs = {'workdir' : self . workdir ( out_of_tree_dir )}
85+ oot_kwargs = {'workdir' : os . path . join ( "build" , out_of_tree_dir )}
9386 else :
9487 configure_cmd = "./configure"
9588 oot_kwargs = {}
@@ -693,7 +686,7 @@ def setup(self, parallel, branch, test_with_PTY=False, **kwargs):
693686 assert self .host is not None , "Must set self.host on cross builds"
694687
695688 out_of_tree_dir = "build_oot"
696- oot_dir_path = self . workdir ( out_of_tree_dir )
689+ oot_dir_path = os . path . join ( "build" , out_of_tree_dir )
697690 oot_build_path = os .path .join (oot_dir_path , "build" )
698691 oot_host_path = os .path .join (oot_dir_path , "host" )
699692
@@ -880,7 +873,7 @@ def __init__(self, source, *, extra_tags=[], **kwargs):
880873
881874 def setup (self , parallel , branch , test_with_PTY = False , ** kwargs ):
882875 wasi_py = "Tools/wasm/wasi.py"
883- host_path = self . workdir ( " cross-build" , " wasm32-wasi")
876+ host_path = "build/ cross-build/ wasm32-wasi"
884877
885878 # Build Python
886879 build_configure = ["python3" , wasi_py , "configure-build-python" ]
0 commit comments