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

via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 12 02:33:19 PDT 2024


Author: Dani
Date: 2024-03-12T10:33:16+01:00
New Revision: 9d16e79aac09e68c46b89cbbad9fe7edd915b8c3

URL: https://github.com/llvm/llvm-project/commit/9d16e79aac09e68c46b89cbbad9fe7edd915b8c3
DIFF: https://github.com/llvm/llvm-project/commit/9d16e79aac09e68c46b89cbbad9fe7edd915b8c3.diff

LOG: [AArch64] Fix COMPILER_RT_HAS_AUXV for builtins. (#84816)

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

Added: 
    

Modified: 
    compiler-rt/cmake/builtin-config-ix.cmake

Removed: 
    


################################################################################
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