File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -295,9 +295,9 @@ def _load_module(self, path: Path) -> T.List[Object]:
295295 return [module , * objs ]
296296
297297 def load_impl (self ) -> ReferenceManual :
298- mlog .log ('Loading YAML refererence manual' )
298+ mlog .log ('Loading YAML reference manual' )
299299 with mlog .nested ():
300- return ReferenceManual (
300+ manual = ReferenceManual (
301301 functions = [self ._load_function (x ) for x in self .func_dir .iterdir ()],
302302 objects = mesonlib .listify ([
303303 [self ._load_object (ObjectType .ELEMENTARY , x ) for x in self .elem_dir .iterdir ()],
@@ -306,3 +306,8 @@ def load_impl(self) -> ReferenceManual:
306306 [self ._load_module (x ) for x in self .modules_dir .iterdir ()]
307307 ], flatten = True )
308308 )
309+
310+ if not self .strict :
311+ mlog .warning ('YAML reference manual loaded using the best-effort fastyaml loader. Results are not guaranteed to be stable or correct.' )
312+
313+ return manual
You can’t perform that action at this time.
0 commit comments