Always infer entry point name from list of stages

This commit is contained in:
Sascha Willems 2025-05-05 21:42:04 +02:00
parent 7c115af4a3
commit dde011039e

View file

@ -83,7 +83,7 @@ for root, dirs, files in os.walk(dir_path):
print("Compiling %s" % input_file) print("Compiling %s" % input_file)
output_base_file_name = input_file output_base_file_name = input_file
for stage in stages: for stage in stages:
if (len(stages) > 1): if (len(stages) > 0):
entry_point = stage + "Main" entry_point = stage + "Main"
else: else:
entry_point = "main" entry_point = "main"