Skip to content

Commit 2eaba46

Browse files
authored
compiler-rt: Use OpenBSD's elf_aux_info to detect AArch64 HW features (#155768)
1 parent 8b3f158 commit 2eaba46

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compiler-rt/lib/builtins/cpu_model/aarch64.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ typedef struct __ifunc_arg_t {
3434
_Bool __aarch64_have_lse_atomics
3535
__attribute__((visibility("hidden"), nocommon)) = false;
3636

37-
#if defined(__FreeBSD__)
37+
#if defined(__FreeBSD__) || defined(__OpenBSD__)
3838
// clang-format off: should not reorder sys/auxv.h alphabetically
3939
#include <sys/auxv.h>
4040
// clang-format on
@@ -68,7 +68,7 @@ struct {
6868
// clang-format off
6969
#if defined(__APPLE__)
7070
#include "aarch64/fmv/apple.inc"
71-
#elif defined(__FreeBSD__)
71+
#elif defined(__FreeBSD__) || defined(__OpenBSD__)
7272
#include "aarch64/fmv/mrs.inc"
7373
#include "aarch64/fmv/elf_aux_info.inc"
7474
#elif defined(__Fuchsia__)

0 commit comments

Comments
 (0)