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

Method GetBuildOptions

tools/ng/environment.py:246–259  ·  view source on GitHub ↗

Get build options. Args: env: SCons Environment Returns: Dictionary of build options

(env)

Source from the content-addressed store, hash-verified

244
245 @staticmethod
246 def GetBuildOptions(env) -> Dict[str, Any]:
247 """
248 Get build options.
249
250 Args:
251 env: SCons Environment
252
253 Returns:
254 Dictionary of build options
255 """
256 context = BuildContext.get_current()
257 if context:
258 return context.build_options
259 return {}
260
261 @staticmethod
262 def GetContext(env) -> Optional[BuildContext]:

Callers

nothing calls this directly

Calls 1

get_currentMethod · 0.45

Tested by

no test coverage detected