MCPcopy Create free account
hub / github.com/FastLED/FastLED / _is_native_or_stub_platform

Method _is_native_or_stub_platform

ci/boards.py:100–118  ·  view source on GitHub ↗

Check if this is a native or stub platform that doesn't need a framework

(self)

Source from the content-addressed store, hash-verified

98 ALL.append(self)
99
100 def _is_native_or_stub_platform(self) -> bool:
101 """Check if this is a native or stub platform that doesn't need a framework"""
102 # Check for native platform
103 if self.platform and (
104 "native" in self.platform.lower() or "stub" in self.platform.lower()
105 ):
106 return True
107
108 # Check for stub build flags
109 if self.build_flags:
110 for flag in self.build_flags:
111 if "FASTLED_STUB" in flag or "PLATFORM_NATIVE" in flag:
112 return True
113
114 # Check no_board_spec flag (typically used for native platforms)
115 if self.no_board_spec:
116 return True
117
118 return False
119
120 def _auto_detect_library_exclusions(self) -> None:
121 """Automatically detect and exclude libraries known to be broken on this platform."""

Callers 1

__post_init__Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected