[clang] [AIX] fix unsupported diff flag on AIX (-strip-trailing-cr) (PR #120276)

Owen Pan via cfe-commits cfe-commits at lists.llvm.org
Tue Dec 17 19:26:14 PST 2024


================
@@ -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()
----------------
owenca wrote:

Why not for all platforms? cc @boomanaiden154 

https://github.com/llvm/llvm-project/pull/120276


More information about the cfe-commits mailing list