[llvm-branch-commits] [flang] release/20.x: [flang] Fix building on aarch64 *BSD and musl libc after 9d8dc45d17088300e9e2086594ca581b119193c8 (#125183) (PR #125254)

via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Fri Jan 31 09:10:42 PST 2025


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-flang-runtime

Author: None (llvmbot)

<details>
<summary>Changes</summary>

Backport e31c6c97b795e57a7b1ee31ad37eced40c6305ed

Requested by: @<!-- -->brad0

---
Full diff: https://github.com/llvm/llvm-project/pull/125254.diff


1 Files Affected:

- (modified) flang/runtime/exceptions.cpp (+1-1) 


``````````diff
diff --git a/flang/runtime/exceptions.cpp b/flang/runtime/exceptions.cpp
index b41c7cf438f569..114d23b5b07f8c 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>

``````````

</details>


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


More information about the llvm-branch-commits mailing list