Skip to content

Commit 934dd20

Browse files
authored
Allow overriding of CFI_MAX_RANK by conditionally setting it to 15 if… (#102048)
it has not already been defined.
1 parent bacb534 commit 934dd20

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

flang/include/flang/ISO_Fortran_binding.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,9 @@
3232
/* 18.5.4 */
3333
#define CFI_VERSION 20240719
3434

35+
#if !defined CFI_MAX_RANK || !defined __OVERRIDE_CFI_MAX_RANK
3536
#define CFI_MAX_RANK 15
37+
#endif
3638
typedef unsigned char CFI_rank_t;
3739

3840
/* This type is probably larger than a default Fortran INTEGER

0 commit comments

Comments
 (0)