[compiler-rt] [builitins] Only try to use getauxval on Linux (PR #104047)

Brad Smith via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 15 09:53:11 PDT 2024


================
@@ -73,7 +73,7 @@ struct {
 #elif defined(__ANDROID__)
 #include "aarch64/fmv/mrs.inc"
 #include "aarch64/fmv/android.inc"
-#elif __has_include(<sys/auxv.h>)
+#elif defined(__linux__) && __has_include(<sys/auxv.h>)
 #include "aarch64/fmv/mrs.inc"
 #include "aarch64/fmv/getauxval.inc"
 #else
----------------
brad0 wrote:

Correct.

https://github.com/llvm/llvm-project/pull/104047


More information about the llvm-commits mailing list