Skip to content

Commit 16486db

Browse files
bisect: add another patch (old versions not building with newer compilers) (#9061)
1 parent 51dc9b1 commit 16486db

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

‎tools/bisect/bisect_common.py‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,11 @@ def build_cppcheck(bisect_path):
2828
print('patching cli/cppcheckexecutor.cpp')
2929
subprocess.check_call(['sed', '-i', 's/SIGSTKSZ/32768/g', os.path.join(bisect_repo_dir, 'cli', 'cppcheckexecutor.cpp')])
3030

31+
pmPath = os.path.join(bisect_repo_dir, 'lib', 'programmemory.cpp')
32+
if os.path.isfile(pmPath):
33+
print('patching lib/programmemory.cpp')
34+
subprocess.check_call(['sed', '-i', '1i #include <limits>', pmPath])
35+
3136
# TODO: older versions do not build because of include changes in libstdc++ - check compiler version and try to use an earlier one
3237
# TODO: make jobs configurable
3338
# TODO: use "make install"?

0 commit comments

Comments
 (0)