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

Method _apply_local_options

tools/ng/project.py:93–106  ·  view source on GitHub ↗

Apply local options to environment.

(self, env)

Source from the content-addressed store, hash-verified

91 )
92
93 def _apply_local_options(self, env) -> None:
94 """Apply local options to environment."""
95 if self.local_cflags:
96 env.AppendUnique(CFLAGS=self.local_cflags.split())
97
98 if self.local_cxxflags:
99 env.AppendUnique(CXXFLAGS=self.local_cxxflags.split())
100
101 if self.local_include_paths:
102 paths = [os.path.abspath(p) for p in self.local_include_paths]
103 env.AppendUnique(CPPPATH=paths)
104
105 if self.local_defines:
106 env.AppendUnique(CPPDEFINES=self.local_defines)
107
108 def _apply_global_options(self, env) -> None:
109 """Apply global options to environment."""

Callers 1

buildMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected