From 009855c193c951da7068af0cb2cc14817375efbc Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Sun, 19 Jul 2026 07:37:01 +0500 Subject: [PATCH] scripts: waifulib: clang_format: don't abort configure when clang-format is too old, just disable the format command --- scripts/waifulib/clang_format.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/waifulib/clang_format.py b/scripts/waifulib/clang_format.py index 395342d3..068899bc 100644 --- a/scripts/waifulib/clang_format.py +++ b/scripts/waifulib/clang_format.py @@ -41,7 +41,9 @@ def configure(conf): return if major < CLANG_FORMAT_MIN_MAJOR: - conf.fatal('clang-format %d found, need >= %d' % (major, CLANG_FORMAT_MIN_MAJOR)) + Logs.warn('clang-format %d found, need >= %d, format command won\'t be available' % (major, CLANG_FORMAT_MIN_MAJOR)) + conf.env.CLANG_FORMAT = [] + return conf.msg('Checking clang-format version', major)