MCPcopy Create free account
hub / github.com/cppcheck-opensource/cppcheck / compile_version

Function compile_version

tools/donate_cpu_lib.py:186–200  ·  view source on GitHub ↗
(cppcheck_path)

Source from the content-addressed store, hash-verified

184
185
186def compile_version(cppcheck_path):
187 if has_binary(cppcheck_path):
188 return True
189 # Build
190 ret = compile_cppcheck(cppcheck_path)
191 # Clean intermediate build files
192 if __make_cmd == "msbuild.exe":
193 exclude_bin = 'bin'
194 elif __make_cmd == 'mingw32-make':
195 exclude_bin = 'cppcheck.exe'
196 else:
197 exclude_bin = 'cppcheck'
198 # TODO: how to support multiple compilers on the same machine? this will clean msbuild.exe files in a mingw32-make build and vice versa
199 subprocess.check_call(['git', 'clean', '-f', '-d', '-x', '--exclude', exclude_bin], cwd=cppcheck_path)
200 return ret
201
202
203def compile_cppcheck(cppcheck_path):

Callers

nothing calls this directly

Calls 2

has_binaryFunction · 0.85
compile_cppcheckFunction · 0.85

Tested by

no test coverage detected