MCPcopy Create free account
hub / github.com/ExpressLRS/ExpressLRS / condense_flags

Function condense_flags

src/python/build_flags.py:111–118  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

109 parse_flags(path)
110
111def condense_flags():
112 global build_flags
113 for line in build_flags:
114 # Some lines have multiple flags so this will split them and remove them all
115 for flag in re.findall(r"!-D\s*[^\s]+", line):
116 build_flags = [x.replace(flag,"") for x in build_flags] # remove the removal flag
117 build_flags = [x.replace(flag[1:],"") for x in build_flags] # remove the flag if it matches the removal flag
118 build_flags = [x for x in build_flags if (x.strip() != "")] # remove any blank items
119
120def version_to_env():
121 ver = elrs_helpers.get_git_version()

Callers 1

build_flags.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected