Skip to content

Commit

Permalink
Merge pull request #2512 from thewtex/musl-floating-point-exceptions
Browse files Browse the repository at this point in the history
COMP: Make floating point exceptions a no-op with MUSL, Linux, ARMv8
  • Loading branch information
thewtex authored Apr 27, 2021
2 parents 1237a57 + 0afa3f0 commit fa36932
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Modules/Core/Common/src/itkFloatingPointExceptions_unix.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,13 @@
# define ITK_FEENABLEEXCEPT_NOOP
#endif

// We do not have ITK_HAS_FEENABLEEXCEPT, and we do not have a workaround
// implemented, e.g. ARMv8 with MUSL
#if !defined(ITK_HAS_FEENABLEEXCEPT) && !defined(__ppc__) && !defined(__ppc64__) && !defined(__i386__) && \
!defined(__x86_64__)
# define ITK_FEENABLEEXCEPT_NOOP
#endif

#if defined(__APPLE__)
# include "TargetConditionals.h"
# if TARGET_OS_IPHONE || TARGET_IPHONE_SIMULATOR || TARGET_CPU_ARM64
Expand Down

0 comments on commit fa36932

Please sign in to comment.