(cppcheck_path)
| 184 | |
| 185 | |
| 186 | def 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 | |
| 203 | def compile_cppcheck(cppcheck_path): |
nothing calls this directly
no test coverage detected