Ticket #23204: qt4-mac_Portfile_ccache.diff

File qt4-mac_Portfile_ccache.diff, 657 bytes (added by michaelld (Michael Dickens), 14 years ago)

"svn diff" of 'qt4-mac' Portfile, to add in rudimentary ccache/distcc support

  • Portfile

     
    8484        ${worksrcpath}/mkspecs/macx-g++/qmake.conf
    8585    reinplace "s| gcc\$| ${configure.cc}|"  \
    8686        ${worksrcpath}/mkspecs/macx-g++/qmake.conf
     87
     88    # fix up tests to work with ccache, if used
     89    if {[tbool configure.ccache]} {
     90        foreach fixfile [exec find ${worksrcpath}/config.tests \
     91                             -name "*.test"] {
     92            reinplace "s@\\\"\\\$COMPILER\\\"@\$COMPILER@g" ${fixfile}
     93        }
     94    }
    8795}
    8896
    8997# The build process uses -fconstant-cfstrings.