[MacPorts] #54752: cmake 1.1 PG : ccache support

MacPorts noreply at macports.org
Mon Feb 1 16:27:30 UTC 2021


#54752: cmake 1.1 PG : ccache support
--------------------------+--------------------
  Reporter:  RJVB         |      Owner:  (none)
      Type:  enhancement  |     Status:  new
  Priority:  Normal       |  Milestone:
 Component:  ports        |    Version:
Resolution:               |   Keywords:
      Port:               |
--------------------------+--------------------

Comment (by mascguy):

 On a semi-related note: For our Python ports - and specifically, those
 that are using Ninja - the CCache variables must be set via the
 environment to have an effect.

 For example, the following was necessary for port 'py-pytorch':

 {{{
     # TODO: CCache support might be worth adding to Python portgroup
     if {[tbool configure.ccache]} {
         build.env-append \
             CMAKE_C_COMPILER_LAUNCHER=${prefix}/bin/ccache \
             CMAKE_CXX_COMPILER_LAUNCHER=${prefix}/bin/ccache
     }

 }}}

 Ken and I briefly discussed, but neither of us are intimately familiar
 with the interactions between Ninja, CMake, etc. So the question is, can
 this be accomplished without adding to the environment?

 And if not, is this something we might want to add to the CMake
 portgroup... or to Python?

 Thoughts?

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


More information about the macports-tickets mailing list