feature: web: start

This commit is contained in:
Dobin
2024-03-07 19:13:25 +00:00
parent 1fe18c4c64
commit 573658e7a0
3 changed files with 32 additions and 14 deletions
+12 -8
View File
@@ -163,14 +163,18 @@ def start(settings: Settings):
# Compile: Carrier to .asm (C -> ASM)
if settings.generate_asm_from_c:
phases.compiler.compile(
c_in = main_c_file,
asm_out = main_asm_file,
payload_len = project.payload.len,
carrier = project.carrier,
source_style = project.settings.source_style,
exe_host = project.exe_host,
short_call_patching = project.settings.short_call_patching)
try:
phases.compiler.compile(
c_in = main_c_file,
asm_out = main_asm_file,
payload_len = project.payload.len,
carrier = project.carrier,
source_style = project.settings.source_style,
exe_host = project.exe_host,
short_call_patching = project.settings.short_call_patching)
except Exception as e:
logger.error(f'Error compiling: {e}')
return exit(1)
# Assemble: Assemble .asm to .shc (ASM -> SHC)
if settings.generate_shc_from_asm: