[MacPorts] #55139: RFE: Improve Compiler Management Code
MacPorts
noreply at macports.org
Sun Oct 29 04:22:54 UTC 2017
#55139: RFE: Improve Compiler Management Code
----------------------------------+-----------------
Reporter: MarcusCalhoun-Lopez | Owner:
Type: enhancement | Status: new
Priority: Normal | Milestone:
Component: base | Version:
Resolution: | Keywords:
Port: |
----------------------------------+-----------------
Comment (by MarcusCalhoun-Lopez):
I hope that the
[https://trac.macports.org/changeset/e8c4772d46ceb8e3f2eac8888097d074da6d6bc2
/macports-ports recent change] addresses some of the concerns
expressed.[[BR]]
As a very simple example, the following code should allow a port to select
the GCC 7 compiler or just the GCC 7 Fortran part.
{{{
compiler.require_fortran yes
variant mpich conflicts openmpi {}
if {[variant_isset mpich]} {
compiler.mpi mpich
}
variant openmpi conflicts mpich {}
if {[variant_isset openmpi]} {
compiler.mpi openmpi
}
variant gcc7 conflicts gfortran {}
if {[variant_isset gcc7]} {
compiler.whitelist macports-gcc-7 macports-mpich-gcc-7 macports-
openmpi-gcc-7
}
variant gfortran conflicts gcc7 {}
if {[variant_isset gfortran]} {
compiler.fortran_fallback macports-gcc-7 macports-mpich-gcc-7
macports-openmpi-gcc-7
}
}}}
If anyone is interested in testing, I have attached a test Portfile for
the reference implementation of [http://www.netlib.org/blas/ blas].
--
Ticket URL: <https://trac.macports.org/ticket/55139#comment:12>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list