[WS] Inform about unexisting compilers and qemu

git-svn-id: svn://kolibrios.org@9411 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
2021-12-08 16:15:21 +00:00
parent efffea0644
commit f3f7980662
4 changed files with 52 additions and 2 deletions

View File

@@ -5,7 +5,8 @@ path_to_tools_workspace = os.path.dirname(os.path.abspath(__file__))
path_to_tools = os.path.dirname(path_to_tools_workspace)
sys.path.append(path_to_tools)
from lib.tupfile_parser import parse_tupfile_outputs
from lib.tupfile_parser import parse_required_compilers, parse_tupfile_outputs
from lib.logging import require_tools
def get_executable_file(output_file_list):
for name in output_file_list:
@@ -14,6 +15,8 @@ def get_executable_file(output_file_list):
return name
def build():
required_compilers = parse_required_compilers("Tupfile.lua")
require_tools(required_compilers)
os.system("tup")
output_file_list = parse_tupfile_outputs("Tupfile.lua")
return get_executable_file(output_file_list)