[flang-commits] [flang] e31c6c9 - [flang] Fix building on aarch64 *BSD and musl libc after 9d8dc45d17088300e9e2086594ca581b119193c8 (#125183)

via flang-commits flang-commits at lists.llvm.org
Fri Jan 31 08:49:32 PST 2025


Author: Brad Smith
Date: 2025-01-31T11:49:28-05:00
New Revision: e31c6c97b795e57a7b1ee31ad37eced40c6305ed

URL: https://github.com/llvm/llvm-project/commit/e31c6c97b795e57a7b1ee31ad37eced40c6305ed
DIFF: https://github.com/llvm/llvm-project/commit/e31c6c97b795e57a7b1ee31ad37eced40c6305ed.diff

LOG: [flang] Fix building on aarch64 *BSD and musl libc after 9d8dc45d17088300e9e2086594ca581b119193c8 (#125183)

The fpu_control.h header appears to be GLIBC specific.

Added: 
    

Modified: 
    flang/runtime/exceptions.cpp

Removed: 
    


################################################################################
diff  --git a/flang/runtime/exceptions.cpp b/flang/runtime/exceptions.cpp
index 257c71b51edb3d..344e7216cfaae8 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__) && !defined(_WIN32)
 #include <xmmintrin.h>


        


More information about the flang-commits mailing list