mirror of
https://github.com/HDFGroup/hdf5.git
synced 2024-12-21 07:51:46 +08:00
Add temporary fix for ARM64 Mac _Float16 build failure (#4639)
This commit is contained in:
parent
6fa09bdb15
commit
74fbc1dbd4
2
.github/workflows/main-cmake.yml
vendored
2
.github/workflows/main-cmake.yml
vendored
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user