Add temporary fix for ARM64 Mac _Float16 build failure (#4639)

This commit is contained in:
jhendersonHDF 2024-07-15 11:28:13 -05:00 committed by GitHub
parent 6fa09bdb15
commit 74fbc1dbd4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 8 additions and 2 deletions

View File

@ -110,7 +110,7 @@ jobs:
# but that seems unnecessary
- name: "MacOS Clang"
os: macos-latest
cpp: OFF
cpp: ON
fortran: ON
java: ON
docs: ON

View File

@ -586,8 +586,14 @@
* _Float16 type to avoid issues when compiling the library
* with the -pedantic flag or similar where we get warnings
* about _Float16 not being an ISO C type.
*
* Due to the inclusion of H5private.h from the C++ wrappers,
* this typedef creation must be avoided when __cplusplus is
* defined to avoid build failures on ARM64 Macs. GCC and
* Clang either do not currently provide a _Float16 type for
* C++ on ARM64, or may need an additional compile-time flag.
*/
#ifdef H5_HAVE__FLOAT16
#if defined(H5_HAVE__FLOAT16) && !defined(__cplusplus)
#if defined(__GNUC__)
__extension__ typedef _Float16 H5__Float16;
#else