Skip to content

Commit df411f8

Browse files
accumulatorSomberNight
authored andcommitted
hostqt6: don't keep build dir around after succesful build
1 parent 56562aa commit df411f8

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

pythonforandroid/recipes/hostqt6/__init__.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def get_build_dir(self, arch=None):
4747
return join(self.get_build_container_dir(), self.build_subdir)
4848

4949
def get_install_dir(self):
50-
return join(self.get_build_dir(), 'install')
50+
return join(self.get_build_container_dir(), 'install')
5151

5252
def build_arch(self, arch):
5353
# super().build_arch(arch)
@@ -67,7 +67,6 @@ def build_arch(self, arch):
6767
shprint(configure, '--help', _env=env, _tail=50, _critical=True)
6868

6969
configure = configure.bake('-opensource', '-confirm-license', '-disable-rpath')
70-
# configure = configure.bake('-extprefix', self.ctx.libs_dir)
7170
configure = configure.bake('-prefix', install_dir)
7271

7372
configure = configure.bake('-nomake', 'tests')
@@ -85,5 +84,8 @@ def build_arch(self, arch):
8584
shprint(sh.make, '-j' + str(cpu_count()), _critical=True)
8685
shprint(sh.make, '-j' + str(cpu_count()), 'install', _critical=True)
8786

87+
# remove huge build tree
88+
shprint(sh.rm, '-rf', self.get_build_dir())
89+
8890

8991
recipe = HostQt6Recipe()

0 commit comments

Comments
 (0)