Commit 85de557
committed
Fix: When main file does not require a module, the output is empty
This issue occurs because the file aggregator lists items using a topological sort. However, the sort returns an empty vector due to the absence of added dependencies, causing the aggregator not to generate the main function for execution in the output. As a result, only a bare call to the main function remains.
The solution is to check whether there is only one module. If so, manually create a single aggregation order instead of calling `load_order`.1 parent f0b5620 commit 85de557
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | | - | |
| 58 | + | |
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
| |||
0 commit comments