[compiler-rt] [builitins] Only try to use getauxval on Linux (PR #104047)
Jon Roelofs via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 14 09:10:01 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
----------------
jroelofs wrote:
Is the expectation that we hit the unimplemented case on OpenBSD?
https://github.com/llvm/llvm-project/pull/104047
More information about the llvm-commits
mailing list