mirror of
https://github.com/FWGS/xash3d-fwgs.git
synced 2026-08-05 03:24:56 +08:00
scripts: waifulib: clang_format: don't abort configure when clang-format is too old, just disable the format command
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user