Skip to content

Commit 3716851

Browse files
[MC] Properly disable debug-frame test on AppleSilicon Mac
Disable debug-frame tests on AppleSilicon Mac to improve some of the fix in PR46647. Reviewed By: aprantl Differential Revision: https://reviews.llvm.org/D134896
1 parent 5e82120 commit 3716851

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

llvm/test/MC/ELF/cfi-version.ll

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@
33
; RUN: %llc_dwarf %s -o - -dwarf-version 4 -filetype=obj | llvm-dwarfdump -v - | FileCheck %s --check-prefix=DWARF4
44
; RUN: %llc_dwarf %s -o - -dwarf-version 5 -filetype=obj | llvm-dwarfdump -v - | FileCheck %s --check-prefix=DWARF4
55

6-
; PR46647
7-
; XFAIL: arm64-apple
8-
96
; .debug_frame is not emitted for targeting Windows x64, aarch64/arm64, or AIX.
107
; REQUIRES: debug_frame
118
; REQUIRES: object-emission

llvm/test/lit.cfg.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -436,8 +436,9 @@ def have_ld64_plugin_support():
436436
if 'hw.optional.fma: 1' in result:
437437
config.available_features.add('fma3')
438438

439-
# .debug_frame is not emitted for targeting Windows x64, aarch64/arm64, or AIX.
440-
if not re.match(r'^(x86_64|aarch64|arm64|powerpc|powerpc64).*-(windows-gnu|windows-msvc|aix)', config.target_triple):
439+
# .debug_frame is not emitted for targeting Windows x64, aarch64/arm64, AIX, or Apple Silicon Mac.
440+
if not re.match(r'^(x86_64|aarch64|arm64|powerpc|powerpc64).*-(windows-gnu|windows-msvc|aix)', config.target_triple) \
441+
and not re.match(r'^arm64(e)?-apple-(macos|darwin)', config.target_triple):
441442
config.available_features.add('debug_frame')
442443

443444
if config.have_libxar:

0 commit comments

Comments
 (0)