Commits on Source (2)
-
## What is the bug The endianness detection in `src/util_hash.c` produces a false result on macOS with GCC 13 or later. For whatever reason, [`#include <sys/param.h>`](https://gitlab.dkrz.de/icon-libraries/libfortran-support/-/blob/316d3dc6edb6ef0f4f1b9adaf9f3cb27a7bb831a/src/util_hash.c#L49) does not define the `__DARWIN_BYTE_ORDER` and `__DARWIN_LITTLE_ENDIAN` macros when [`#define _POSIX_C_SOURCE 200112L`](https://gitlab.dkrz.de/icon-libraries/libfortran-support/-/blob/316d3dc6edb6ef0f4f1b9adaf9f3cb27a7bb831a/src/util_hash.c#L45). And that leads to the wrong values of the `HASH_LITTLE_ENDIAN` and `HASH_BIG_ENDIAN` macros. See also https://gitlab.dkrz.de/icon/icon-mpim/-/merge_requests/684#note_300951 . ## How do you fix it The endianness detection is delegated to CMake. Approved-by:
Yen-Chen Chen <yen-chen.chen@tum.de> Merged-by:
Yen-Chen Chen <yen-chen.chen@tum.de> Changelog: bugfix
-
## What is the bug `OpenMP_C` is not used and cannot be found with Mac clang, which causes compile trouble. This MR solves #25 . ## How do you fix it Only find OpenMP and the link for Fortran. Along the way, one bug for `insert_dimension` is also fixed with this MR. Approved-by:
Pradipta Samanta <samanta@dkrz.de> Merged-by:
Pradipta Samanta <samanta@dkrz.de> Changelog: bugfix
Showing
- .gitlab-ci.yml 53 additions, 1 deletion.gitlab-ci.yml
- src/CMakeLists.txt 8 additions, 5 deletionssrc/CMakeLists.txt
- src/config.h.in 2 additions, 0 deletionssrc/config.h.in
- src/mo_fortran_tools.F90 8 additions, 64 deletionssrc/mo_fortran_tools.F90
- src/util_hash.c 5 additions, 47 deletionssrc/util_hash.c
- src/util_hash.h 1 addition, 0 deletionssrc/util_hash.h