[llvm] 3129b33 - test/ExecutionEngine: Clean up lit.local.cfg

Tom Stellard via llvm-commits llvm-commits at lists.llvm.org
Fri Nov 12 19:48:24 PST 2021


Author: Tom Stellard
Date: 2021-11-12T19:47:56-08:00
New Revision: 3129b3339ce133650b460a7e6b7199111f97bb4c

URL: https://github.com/llvm/llvm-project/commit/3129b3339ce133650b460a7e6b7199111f97bb4c
DIFF: https://github.com/llvm/llvm-project/commit/3129b3339ce133650b460a7e6b7199111f97bb4c.diff

LOG: test/ExecutionEngine: Clean up lit.local.cfg

Switch to using config.root.native_target to determine if tests are
supported.  This is a canonical form of the arch from the target
triple.

Reviewed By: lhames, DavidSpickett

Differential Revision: https://reviews.llvm.org/D110788

Added: 
    

Modified: 
    llvm/test/ExecutionEngine/lit.local.cfg

Removed: 
    


################################################################################
diff  --git a/llvm/test/ExecutionEngine/lit.local.cfg b/llvm/test/ExecutionEngine/lit.local.cfg
index 8b7d157a25c51..d5c6decc7ef5b 100644
--- a/llvm/test/ExecutionEngine/lit.local.cfg
+++ b/llvm/test/ExecutionEngine/lit.local.cfg
@@ -1,18 +1,4 @@
-if config.root.host_arch in ['Sparc', 'PowerPC', 'AArch64', 'ARM64', 'SystemZ']:
-    config.unsupported = True
-
-# CMake and autoconf diverge in naming or host_arch
-if 'powerpc64' in config.root.target_triple:
-    config.unsupported = True
-
-if 'aarch64' in config.root.target_triple \
-    or 'arm64' in config.root.target_triple:
-        config.unsupported = True
-
-if 'hexagon' in config.root.target_triple:
-    config.unsupported = True
-
-if 'sparc' in config.root.target_triple:
+if config.root.native_target in ['Sparc', 'PowerPC', 'AArch64', 'ARM64', 'SystemZ', 'Hexagon']:
     config.unsupported = True
 
 # ExecutionEngine tests are not expected to pass in a cross-compilation setup.


        


More information about the llvm-commits mailing list