MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / init_build_context

Function init_build_context

tools/ng/adapter.py:21–35  ·  view source on GitHub ↗

Initialize the build context. This function should be called early in PrepareBuilding. Args: root_directory: RT-Thread root directory Returns: BuildContext instance

(root_directory: str)

Source from the content-addressed store, hash-verified

19
20
21def init_build_context(root_directory: str) -> BuildContext:
22 """
23 Initialize the build context.
24
25 This function should be called early in PrepareBuilding.
26
27 Args:
28 root_directory: RT-Thread root directory
29
30 Returns:
31 BuildContext instance
32 """
33 global _context
34 _context = BuildContext(root_directory)
35 return _context
36
37
38def get_build_context() -> Optional[BuildContext]:

Callers 2

PrepareBuildingFunction · 0.90
PrepareModuleBuildingFunction · 0.85

Calls 1

BuildContextClass · 0.85

Tested by

no test coverage detected