Skip to content

Commit

Permalink
Merge branch 'release'
Browse files Browse the repository at this point in the history
  • Loading branch information
thewtex committed Apr 26, 2021
2 parents 475e284 + 1237a57 commit 6c4d6da
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
6 changes: 4 additions & 2 deletions Wrapping/Generators/Python/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -450,8 +450,10 @@ ${DO_NOT_WAIT_FOR_THREADS_DECLS}
endif()
if ("${CMAKE_VERSION}" VERSION_GREATER_EQUAL 3.13.0 AND NOT MSVC)
include(CheckIPOSupported)
check_ipo_supported()
set_property(TARGET ${lib} PROPERTY INTERPROCEDURAL_OPTIMIZATION_RELEASE TRUE)
check_ipo_supported(RESULT ipo_is_supported)
if (ipo_is_supported)
set_property(TARGET ${lib} PROPERTY INTERPROCEDURAL_OPTIMIZATION_RELEASE TRUE)
endif()
endif()

# Link the modules together
Expand Down
5 changes: 4 additions & 1 deletion Wrapping/Generators/Python/itk/support/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,10 @@ def initialize_c_types_once() -> (
else:
_UL: "itkCType" = itkCType("unsigned long", "UL", np.uint64)
_SL: "itkCType" = itkCType("signed long", "SL", np.int64)
_LD: "itkCType" = itkCType("long double", "LD", np.float128)
if hasattr(np, 'float128'):
_LD: "itkCType" = itkCType("long double", "LD", np.float128)
else:
_LD: "itkCType" = itkCType("long double", "LD")
_ULL: "itkCType" = itkCType("unsigned long long", "ULL", np.uint64)
_SC: "itkCType" = itkCType("signed char", "SC", np.int8)
_SS: "itkCType" = itkCType("signed short", "SS", np.int16)
Expand Down

0 comments on commit 6c4d6da

Please sign in to comment.