File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -138,11 +138,12 @@ def print_library(self, opts):
138
138
if opts .embed_templates :
139
139
self .file .write (f"\n \n \n { content } " )
140
140
else :
141
+ # we need to share libraries in a common file to build same-library headers separately while loading the library only once
142
+ # FIXME reading EXT_LOADER and searching for a string pattern each time is dirty -- a dedicated json status file to track state might be cleaner
141
143
loader_txt = self .EXT_LOADER .read_text ()
142
144
if name_define in loader_txt :
143
145
status_message ("Library already loaded in shared file, won't rewrite." )
144
146
else :
145
- # we need to share libraries in a common file to build same-library headers separately while loading the library only once
146
147
status_message ("Adding library loader to shared file." )
147
148
self .EXT_LOADER .write_text (f"{ loader_txt } \n \n { content } \n " )
148
149
You can’t perform that action at this time.
0 commit comments