Skip to content

Commit

Permalink
R: ensure correct gcc is picked when gcc used as a primary compiler
Browse files Browse the repository at this point in the history
  • Loading branch information
barracuda156 committed Jul 5, 2024
1 parent ee065f7 commit 495e73a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion math/R/Portfile
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,19 @@ compiler.blacklist-append {macports-clang-1[7-9]}
# Similarly, for gcc select the gcc13 variant of the compilers PG.
# This setting should also be kept in sync with that in the R Portgroup.
# Updates should be coordinated with the R maintainers.
# NOTE: upon the update to gcc14, please add a blacklist of newer gccs,
compiler.blacklist-append {macports-gcc-1[4-9]}
# NOTE: upon the update to gcc14, please update the blacklist accordingly,
# like it is done for clangs. We would prefer using the same version of gcc and gfortran.
if {${os.platform} eq "darwin" && ${os.major} < 10} {
# Until old platforms are switched to the new libgcc.
default_variants-append +gcc7
} else {
default_variants-append +gcc13
}
# When switching to gcc14, make sure to add this flag when gcc is used
# as the primary compiler: -Wno-error=incompatible-pointer-types
# devQuartz.c:3049:35: error: passing argument 2 of 'CGContextSetFont'
# from incompatible pointer type [-Wincompatible-pointer-types]

compilers.choose fc f77
compilers.setup require_fortran
Expand Down

0 comments on commit 495e73a

Please sign in to comment.