[compiler-rt] 92a6dd6 - [test][ORC-RT] Disable x86_64 tests when target arch does not match

Ben Langmuir via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 21 10:04:34 PDT 2021


Author: Ben Langmuir
Date: 2021-10-21T10:01:23-07:00
New Revision: 92a6dd6e50c8055a4db88f42966e48a915b81c76

URL: https://github.com/llvm/llvm-project/commit/92a6dd6e50c8055a4db88f42966e48a915b81c76
DIFF: https://github.com/llvm/llvm-project/commit/92a6dd6e50c8055a4db88f42966e48a915b81c76.diff

LOG: [test][ORC-RT] Disable x86_64 tests when target arch does not match

When cross-compiling, these tests will fail. For now leave the host arch
check that was already there since I don't know why it was added.

Added: 
    

Modified: 
    compiler-rt/test/orc/TestCases/Darwin/x86-64/lit.local.cfg.py
    compiler-rt/test/orc/TestCases/FreeBSD/x86-64/lit.local.cfg.py
    compiler-rt/test/orc/TestCases/Linux/x86-64/lit.local.cfg.py

Removed: 
    


################################################################################
diff  --git a/compiler-rt/test/orc/TestCases/Darwin/x86-64/lit.local.cfg.py b/compiler-rt/test/orc/TestCases/Darwin/x86-64/lit.local.cfg.py
index 1b14fb647bf6d..c6eb0acca30e1 100644
--- a/compiler-rt/test/orc/TestCases/Darwin/x86-64/lit.local.cfg.py
+++ b/compiler-rt/test/orc/TestCases/Darwin/x86-64/lit.local.cfg.py
@@ -1,2 +1,5 @@
 if config.root.host_arch != 'x86_64':
   config.unsupported = True
+
+if config.target_arch != 'x86_64':
+  config.unsupported = True
\ No newline at end of file

diff  --git a/compiler-rt/test/orc/TestCases/FreeBSD/x86-64/lit.local.cfg.py b/compiler-rt/test/orc/TestCases/FreeBSD/x86-64/lit.local.cfg.py
index e42e830bf013c..117b77e5a3c97 100644
--- a/compiler-rt/test/orc/TestCases/FreeBSD/x86-64/lit.local.cfg.py
+++ b/compiler-rt/test/orc/TestCases/FreeBSD/x86-64/lit.local.cfg.py
@@ -1,2 +1,5 @@
 if config.root.host_arch not in ['x86_64', 'amd64']:
   config.unsupported = True
+
+if config.target_arch not in ['x86_64', 'amd64']:
+  config.unsupported = True
\ No newline at end of file

diff  --git a/compiler-rt/test/orc/TestCases/Linux/x86-64/lit.local.cfg.py b/compiler-rt/test/orc/TestCases/Linux/x86-64/lit.local.cfg.py
index 1b14fb647bf6d..f5b50ef01c370 100644
--- a/compiler-rt/test/orc/TestCases/Linux/x86-64/lit.local.cfg.py
+++ b/compiler-rt/test/orc/TestCases/Linux/x86-64/lit.local.cfg.py
@@ -1,2 +1,5 @@
 if config.root.host_arch != 'x86_64':
   config.unsupported = True
+
+if config.target_arch != 'x86_64':
+  config.unsupported = True


        


More information about the llvm-commits mailing list