File tree Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -165,6 +165,9 @@ endif()
165
165
if ( gfortran_compiler AND ( NOT CMAKE_Fortran_COMPILER_VERSION VERSION_LESS 7.0.0 ) )
166
166
add_definitions (-DGCC_GE_7 ) # Tell library to build against GFortran 7.x bindings b/c we might be using clang for C
167
167
endif ()
168
+ if ( gfortran_compiler AND ( NOT CMAKE_Fortran_COMPILER_VERSION VERSION_LESS 8.0.0 ) )
169
+ add_definitions (-DGCC_GE_8 ) # Tell library to build against GFortran 8.x bindings w/ descriptor change
170
+ endif ()
168
171
169
172
if (gfortran_compiler )
170
173
set (OLD_REQUIRED_FLAGS ${CMAKE_REQUIRED_FLAGS} )
Original file line number Diff line number Diff line change @@ -51,7 +51,9 @@ typedef struct gfc_descriptor_t {
51
51
void * base_addr ;
52
52
size_t offset ;
53
53
ptrdiff_t dtype ;
54
+ #ifdef GCC_GE_8
54
55
ptrdiff_t span ;
56
+ #endif
55
57
descriptor_dimension dim [];
56
58
} gfc_descriptor_t ;
57
59
You can’t perform that action at this time.
0 commit comments