Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 28 Dec 2019 16:59:40 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 242945] devel/cmake: bad interaction with non-default compilers: cmake loses ccache
Message-ID:  <bug-242945-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D242945

            Bug ID: 242945
           Summary: devel/cmake: bad interaction with non-default
                    compilers: cmake loses ccache
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Ports Framework
          Assignee: kde@FreeBSD.org
          Reporter: mandree@FreeBSD.org
                CC: kde@FreeBSD.org, portmgr@FreeBSD.org,
                    ports-bugs@FreeBSD.org
             Flags: maintainer-feedback?(kde@FreeBSD.org)
                CC: kde@FreeBSD.org

Greetings,

our ccache rigging is incomplete and fails if a port uses cmake to build and
also a non-default compiler, such as a versioned cc/c++, or USE_GCC, or
thereabouts.

In that situation, cmake derives an absolute path (of the compiler) and los=
es
the ccache wrapper.

My current workaround, in, for instance, graphics/rawtherapee/Makefile, is:

.if "${WITH_CCACHE_BUILD}" =3D=3D "yes" && !defined(NO_CCACHE)
CMAKE_ARGS+=3D    -DCMAKE_C_COMPILER_LAUNCHER=3D${CCACHE_BIN} \
                -DCMAKE_CXX_COMPILER_LAUNCHER=3D${CCACHE_BIN}
.endif

It would be good if either devel/cmake, or Mk/Uses/cmake.mk, or
Mk/bsd.ccache.mk would avoid the need of spilling this to all medium- to
heaviweight ports.

--=20
You are receiving this mail because:
You are on the CC list for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-242945-7788>