Skip to content

Commit 2b51b48

Browse files
authored
bisect_common.py: fixed flags for builds with older versions [skip ci] (#7786)
1 parent 2ee39fe commit 2b51b48

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tools/bisect/bisect_common.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ def build_cppcheck(bisect_path):
3333
# TODO: use "make install"?
3434
# TODO: use CXXOPTS overrides to workaround compiling issues in older versions
3535
print('building {}'.format(commit_hash))
36-
subprocess.check_call(['make', '-C', bisect_repo_dir, '-j6', 'MATCHCOMPILER=yes', 'CXXOPTS=-O2 -w -pipe', '-s'])
36+
# we always need to use CXXFLAGS because we need to support older versions
37+
subprocess.check_call(['make', '-C', bisect_repo_dir, '-j6', 'MATCHCOMPILER=yes', 'CXXFLAGS=-O2 -w -pipe', '-s'])
3738

3839
# TODO: remove folder if installation failed
3940
print('installing {}'.format(commit_hash))

0 commit comments

Comments
 (0)