https://github.com/llvmbot updated 
https://github.com/llvm/llvm-project/pull/125254

>From 58627ce1144c510aeb98c2bcaa56dff0a70b4fdf Mon Sep 17 00:00:00 2001
From: Brad Smith <b...@comstyle.com>
Date: Fri, 31 Jan 2025 11:49:28 -0500
Subject: [PATCH] [flang] Fix building on aarch64 *BSD and musl libc after
 9d8dc45d17088300e9e2086594ca581b119193c8 (#125183)

The fpu_control.h header appears to be GLIBC specific.

(cherry picked from commit e31c6c97b795e57a7b1ee31ad37eced40c6305ed)
---
 flang/runtime/exceptions.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/flang/runtime/exceptions.cpp b/flang/runtime/exceptions.cpp
index b41c7cf438f569e..114d23b5b07f8c4 100644
--- a/flang/runtime/exceptions.cpp
+++ b/flang/runtime/exceptions.cpp
@@ -11,7 +11,7 @@
 #include "flang/Runtime/exceptions.h"
 #include "terminator.h"
 #include <cfenv>
-#if defined(__aarch64__) && !defined(_WIN32)
+#if defined(__aarch64__) && defined(__GLIBC__)
 #include <fpu_control.h>
 #elif defined(__x86_64__)
 #include <xmmintrin.h>

_______________________________________________
llvm-branch-commits mailing list
llvm-branch-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

Reply via email to