diff --git a/configure.py b/configure.py index 7a5cfeeaf8af56..69841d624f37b0 100755 --- a/configure.py +++ b/configure.py @@ -1301,7 +1301,7 @@ def check_compiler(o): if not ok: warn(f'failed to autodetect C++ compiler version (CXX={CXX})') elif (is_apple and clang_version < (17, 0, 0) or not is_apple and clang_version < (19, 1, 0)) if is_clang else gcc_version < (12, 2, 0): - warn(f'C++ compiler (CXX={CXX}, {version_str}) too old, need g++ 12.2.0, clang++ 19.1.0, or Apple clang++ 17.0.0') + warn(f"C++ compiler (CXX={CXX}, {version_str}) too old, need g++ 12.2.0 or clang++ 19.1.0{' or Apple clang++ 17.0.0' if is_apple else ''}") ok, is_clang, clang_version, gcc_version, is_apple = try_check_compiler(CC, 'c') version_str = ".".join(map(str, clang_version if is_clang else gcc_version))