Commit ecf58a9
authored
Include _part*.c files to the list of source files for the FMU Makefile (#8836)
- Make sure any generated `_part*.c` files for big models are listed in
the list of source files in the generated Makefile for FMU code.
- The modelDescription.xml file does not list these files yet. Unfortunately:
- We do not know how many of them there are until we have called `CodegenFMU.translateModel.`
- Which means the list of source files passed to `CodegenFMU.translateModel`
does not include these extra `_part.c` files. It only lists the default ones.
- Which means they are not listed in the modelDescription.xml file.
The way to fix that is to separate the generation of `modelDescrition.xml`
from `CodegenFMU.translateModel`. However, `modelDescrition.xml` wants to
use the same GUID as the model code. Which means the `transateModel` call
should make its created GUID available outside of it. We can not simply
return the GUID from it (?) so there needs to be some more restructuring
needed. However, `modelDescrition.xml` at the moment does does not list
all the extra files anyway. So for now we leave it like this and make
sure the makefile gets them properly at least.
- Fixes #8805 and improves #8641.1 parent b1fc5c8 commit ecf58a9
1 file changed
+12
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
875 | 875 | | |
876 | 876 | | |
877 | 877 | | |
878 | | - | |
879 | 878 | | |
880 | 879 | | |
881 | 880 | | |
| |||
890 | 889 | | |
891 | 890 | | |
892 | 891 | | |
893 | | - | |
| 892 | + | |
894 | 893 | | |
895 | 894 | | |
896 | 895 | | |
897 | 896 | | |
| 897 | + | |
| 898 | + | |
| 899 | + | |
| 900 | + | |
| 901 | + | |
| 902 | + | |
| 903 | + | |
| 904 | + | |
| 905 | + | |
| 906 | + | |
| 907 | + | |
898 | 908 | | |
899 | 909 | | |
900 | 910 | | |
| |||
0 commit comments