Restart compilation server on project clean

This commit is contained in:
luboslenco 2019-02-21 09:13:00 +01:00
parent 0bed1fcda6
commit 905f18a9a3
2 changed files with 6 additions and 1 deletions

View file

@ -23,3 +23,4 @@ def kill_haxe():
global haxe_server
if haxe_server != None:
haxe_server.kill()
haxe_server = None

View file

@ -275,7 +275,7 @@ def compile(assets_only=False):
if (kha_target_name == 'krom' and not state.is_publish) or (kha_target_name == 'html5' and not state.is_publish):
cmd.append(arm.utils.build_dir() + '/debug')
# Start compilation server
if kha_target_name == 'krom' and arm.utils.get_compilation_server() and not assets_only:
if kha_target_name == 'krom' and arm.utils.get_compilation_server() and not assets_only and wrd.arm_cache_build:
compilation_server = True
arm.lib.server.run_haxe(arm.utils.get_haxe_path())
else:
@ -639,4 +639,8 @@ def clean():
mat.signature = ''
mat.arm_cached = False
# Restart compilation server
if arm.utils.get_compilation_server():
arm.lib.server.kill_haxe()
print('Project cleaned')