Skip to content

Commit 08ccb4b

Browse files
committed
sve feature detection only on linux
Signed-off-by: Marco Vogel <[email protected]>
1 parent 1e9c71b commit 08ccb4b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ompi/mca/op/aarch64/configure.m4

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,10 +106,10 @@ int main(void) {
106106
AC_MSG_CHECKING([for SVE support (with +sve)])
107107
AC_LINK_IFELSE(
108108
[AC_LANG_SOURCE([[
109-
#if defined(__aarch64__)
109+
#if defined(__aarch64__) && defined(__linux__)
110110
#include <arm_sve.h>
111111
#else
112-
#error "not on aarch64"
112+
#error "this feature is only supported on aarch64 + linux platforms"
113113
#endif
114114

115115
__attribute__((__target__("+sve")))

0 commit comments

Comments
 (0)