mirror of
https://github.com/AdaCore/learn.git
synced 2026-02-12 13:00:42 -08:00
Test script: fix setting main file for SPARK project
Do not set the filename in case of no main file.
This commit is contained in:
@@ -365,7 +365,8 @@ def analyze_file(rst_file, extracted_projects_list_file=None):
|
||||
|
||||
if block.language == "ada":
|
||||
|
||||
block.project_main_file = get_main_filename(block)
|
||||
if block.run_it:
|
||||
block.project_main_file = get_main_filename(block)
|
||||
block.spark_project_filename = write_project_file(block.project_main_file,
|
||||
block.compiler_switches,
|
||||
spark_mode=True)
|
||||
|
||||
Reference in New Issue
Block a user