Skip to content

Commit

Permalink
Skip clang-format for version with bug
Browse files Browse the repository at this point in the history
  • Loading branch information
WillChilds-Klein committed Apr 4, 2024
1 parent 09dcfe5 commit d52c398
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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('17') < 0) {
cpp {
target 'csrc/*'
licenseHeaderFile 'build-tools/license-headers/LicenseHeader.h'
Expand Down

0 comments on commit d52c398

Please sign in to comment.