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

Function main

ci/wasm_flags.py:170–198  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

168
169
170def main() -> int:
171 parser = argparse.ArgumentParser(description="WASM build flag loader")
172 parser.add_argument(
173 "--target",
174 required=True,
175 choices=["lib_compile", "sketch_compile", "link"],
176 help="Which flag set to emit",
177 )
178 parser.add_argument(
179 "--mode",
180 default="quick",
181 help="Build mode (debug, fast_debug, quick, release)",
182 )
183 args = parser.parse_args()
184
185 if args.target == "lib_compile":
186 flags = get_lib_compile_flags(args.mode)
187 elif args.target == "sketch_compile":
188 flags = get_sketch_compile_flags(args.mode)
189 elif args.target == "link":
190 flags = get_link_flags(args.mode)
191 else:
192 print(f"Unknown target: {args.target}", file=sys.stderr)
193 return 1
194
195 # One flag per line for easy consumption by meson split('\n')
196 for flag in flags:
197 print(flag)
198 return 0
199
200
201if __name__ == "__main__":

Callers 1

wasm_flags.pyFile · 0.70

Calls 5

get_lib_compile_flagsFunction · 0.85
get_sketch_compile_flagsFunction · 0.85
get_link_flagsFunction · 0.85
parse_argsMethod · 0.80
printFunction · 0.50

Tested by

no test coverage detected