From 980c928ed3f2a058b46f2f126a2ff88d891910b0 Mon Sep 17 00:00:00 2001 From: Will Childs-Klein Date: Wed, 3 Apr 2024 14:25:36 -0400 Subject: [PATCH] Skip clang-format for version with bug --- build.gradle | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/build.gradle b/build.gradle index e45666a5..0aa9da07 100644 --- a/build.gradle +++ b/build.gradle @@ -53,9 +53,10 @@ spotless { } // clang-format is difficult to configure across all of our platforms so we - // avoid being really strict about enforcing it in our build for now. + // avoid being really strict about enforcing it in our build for now. version + // 17.x has a bug, so skip that version. def clangFormatVersion = getClangFormatVersion() - if (!clangFormatVersion.equals('')) { + if (!clangFormatVersion.equals('') && clangFormatVersion.indexOf('18') < 0) { cpp { target 'csrc/*' licenseHeaderFile 'build-tools/license-headers/LicenseHeader.h'