[compiler-rt] [AArch64] Fix COMPILER_RT_HAS_AUXV for builtins. (PR #84816)

via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 11 12:48:00 PDT 2024


https://github.com/DanielKristofKiss created https://github.com/llvm/llvm-project/pull/84816

COMPILER_RT_HAS_AUXV is used now in builtins so the test need to be in the builtin-config-ix.cmake too.

>From b950c4a3b3e023b5c39f0d4f0b2cd3d12bd96cb4 Mon Sep 17 00:00:00 2001
From: Daniel Kiss <daniel.kiss at arm.com>
Date: Mon, 11 Mar 2024 20:42:14 +0100
Subject: [PATCH] [AArch64] Fix COMPILER_RT_HAS_AUXV for builtins.

COMPILER_RT_HAS_AUXV is used now in builtins so the test need to be in
the builtin-config-ix.cmake too.
---
 compiler-rt/cmake/builtin-config-ix.cmake | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/compiler-rt/cmake/builtin-config-ix.cmake b/compiler-rt/cmake/builtin-config-ix.cmake
index d10222b7530a81..33c97b1ac28aff 100644
--- a/compiler-rt/cmake/builtin-config-ix.cmake
+++ b/compiler-rt/cmake/builtin-config-ix.cmake
@@ -1,4 +1,5 @@
 include(BuiltinTests)
+include(CheckIncludeFiles)
 include(CheckCSourceCompiles)
 
 # Make all the tests only check the compiler
@@ -43,6 +44,8 @@ void foo(void)  __arm_streaming_compatible {
 }
 ")
 
+check_include_files("sys/auxv.h"    COMPILER_RT_HAS_AUXV)
+
 if(ANDROID)
   set(OS_NAME "Android")
 else()



More information about the llvm-commits mailing list