Skip to content

Commit

Permalink
[AIX] fix unsupported diff flag on AIX (-strip-trailing-cr) (#120276)
Browse files Browse the repository at this point in the history
#119666 adds the
`-strip-trailing-cr` flag to diff which is not supported on AIX switch
to use the python implementation of diff instead
  • Loading branch information
madanial0 authored Dec 17, 2024
1 parent c98e79d commit 2a0091f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions clang/test/Format/lit.local.cfg
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
import platform
import lit.formats

# Suffixes supported by clang-format.
config.suffixes = [
".c",
Expand All @@ -19,3 +22,8 @@ config.suffixes = [
".td",
".test"
]

# AIX 'diff' command doesn't support --strip-trailing-cr, but the internal
# python implementation does, so use that for cross platform compatibility
if platform.system() == "AIX":
config.test_format = lit.formats.ShTest()

0 comments on commit 2a0091f

Please sign in to comment.