[MacPorts] #59835: cmake: strange libc++ "if" condition

MacPorts noreply at macports.org
Thu Dec 12 15:12:50 UTC 2019


#59835: cmake: strange libc++ "if" condition
------------------------+--------------------
  Reporter:  michaelld  |      Owner:  (none)
      Type:  defect     |     Status:  new
  Priority:  Normal     |  Milestone:
 Component:  ports      |    Version:
Resolution:             |   Keywords:
      Port:  cmake      |
------------------------+--------------------

Comment (by michaelld):

 I read the above to say -- assuming os.major == 10 means OSX 10.6 ... yes?

 "For 10.6+ and not-PPC of either bit-size" ... which seems unnecessary
 since 10.6+ can't be PPC.

 Hence can't this be reduced to something more like:
 {{{
 if {(${os.platform} eq "darwin") && (${os.major} >= 10)) {
     depends_lib-append port:libcxx
     configure.cxx_stdlib libc++
 }
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/59835#comment:4>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list