From 92a6dd6e50c8055a4db88f42966e48a915b81c76 Mon Sep 17 00:00:00 2001 From: Ben Langmuir Date: Thu, 21 Oct 2021 10:01:23 -0700 Subject: [PATCH] [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. --- compiler-rt/test/orc/TestCases/Darwin/x86-64/lit.local.cfg.py | 3 +++ compiler-rt/test/orc/TestCases/FreeBSD/x86-64/lit.local.cfg.py | 3 +++ compiler-rt/test/orc/TestCases/Linux/x86-64/lit.local.cfg.py | 3 +++ 3 files changed, 9 insertions(+) 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 1b14fb6..c6eb0ac 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 e42e830..117b77e 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 1b14fb6..f5b50ef 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 -- 2.7.4