diff --git a/tools/bisect/bisect_common.py b/tools/bisect/bisect_common.py index 10494d36512..05bcc9aa9ec 100644 --- a/tools/bisect/bisect_common.py +++ b/tools/bisect/bisect_common.py @@ -28,6 +28,11 @@ def build_cppcheck(bisect_path): print('patching cli/cppcheckexecutor.cpp') subprocess.check_call(['sed', '-i', 's/SIGSTKSZ/32768/g', os.path.join(bisect_repo_dir, 'cli', 'cppcheckexecutor.cpp')]) + pmPath = os.path.join(bisect_repo_dir, 'lib', 'programmemory.cpp') + if os.path.isfile(pmPath): + print('patching lib/programmemory.cpp') + subprocess.check_call(['sed', '-i', '1i #include ', pmPath]) + # TODO: older versions do not build because of include changes in libstdc++ - check compiler version and try to use an earlier one # TODO: make jobs configurable # TODO: use "make install"?