From 22267f6f8c183653ff81c62d7d0b0abb4a6eeeef Mon Sep 17 00:00:00 2001 From: Lang Hames Date: Mon, 17 Apr 2023 14:27:32 -0700 Subject: [PATCH] [ORC-RT] Check for jit-compatible-osx-swift-runtime on tests that need one. rdar://107846455 --- compiler-rt/test/orc/TestCases/Darwin/arm64/objc-category.S | 2 ++ compiler-rt/test/orc/TestCases/Darwin/arm64/trivial-objc-methods.S | 2 ++ compiler-rt/test/orc/TestCases/Darwin/x86-64/trivial-objc-methods.S | 2 ++ 3 files changed, 6 insertions(+) diff --git a/compiler-rt/test/orc/TestCases/Darwin/arm64/objc-category.S b/compiler-rt/test/orc/TestCases/Darwin/arm64/objc-category.S index 9fe3b92..529fd08 100644 --- a/compiler-rt/test/orc/TestCases/Darwin/arm64/objc-category.S +++ b/compiler-rt/test/orc/TestCases/Darwin/arm64/objc-category.S @@ -6,6 +6,8 @@ // // RUN: %clang -c -o %t.o %s // RUN: %llvm_jitlink -preload libobjc.A.dylib %t.o +// +// REQUIRES: jit-compatible-osx-swift-runtime .section __TEXT,__text,regular,pure_instructions .build_version macos, 14, 0 diff --git a/compiler-rt/test/orc/TestCases/Darwin/arm64/trivial-objc-methods.S b/compiler-rt/test/orc/TestCases/Darwin/arm64/trivial-objc-methods.S index 1a0718c..bf3cb1e 100644 --- a/compiler-rt/test/orc/TestCases/Darwin/arm64/trivial-objc-methods.S +++ b/compiler-rt/test/orc/TestCases/Darwin/arm64/trivial-objc-methods.S @@ -1,6 +1,8 @@ // RUN: %clang -c -o %t %s // RUN: %llvm_jitlink -preload libobjc.A.dylib %t // +// REQUIRES: jit-compatible-osx-swift-runtime +// // Test that Objective-C class and instance methods work. .section __TEXT,__text,regular,pure_instructions diff --git a/compiler-rt/test/orc/TestCases/Darwin/x86-64/trivial-objc-methods.S b/compiler-rt/test/orc/TestCases/Darwin/x86-64/trivial-objc-methods.S index 8e5f95c..36569b5 100644 --- a/compiler-rt/test/orc/TestCases/Darwin/x86-64/trivial-objc-methods.S +++ b/compiler-rt/test/orc/TestCases/Darwin/x86-64/trivial-objc-methods.S @@ -1,6 +1,8 @@ // RUN: %clang -c -o %t %s // RUN: %llvm_jitlink -preload libobjc.A.dylib %t // +// REQUIRES: jit-compatible-osx-swift-runtime +// // Test that Objective-C class and instance methods work. .section __TEXT,__text,regular,pure_instructions -- 2.7.4