Page MenuHomeFreeBSD

Mk/bsd.ccache.mk: Make cmake support more flexible
Needs ReviewPublic

Authored by madpilot on Fri, Apr 4, 1:57 PM.
Tags
None
Referenced Files
F114166512: D49662.id153203.diff
Tue, Apr 8, 2:47 PM
F114160358: D49662.id153150.diff
Tue, Apr 8, 1:09 PM
F114155741: D49662.diff
Tue, Apr 8, 11:50 AM
Unknown Object (File)
Tue, Apr 8, 7:50 AM
Unknown Object (File)
Sun, Apr 6, 7:04 AM
Subscribers

Details

Reviewers
yuri
rene
Group Reviewers
portmgr
Summary

With commit R11:56538adacf53391307f687155be3fc787a95f40b to ports, I noticed an issue with poudriere, I was not able to disble using ccache for single ports (depending on cmake) by defining NO_CCACHE, looks like this commit ignores that varaible.

I also noticed that the commit hardcodes "ccache" as a binary name.

My patch puts the stanza in the general conditional so it is enabled only when ccache is being actually used. I'm also making the value use the variable CCACHE_BIN, which could be configured by the user.

Diff Detail

Repository
R11 FreeBSD ports repository
Lint
No Lint Coverage
Unit
No Test Coverage
Build Status
Buildable 63347
Build 60231: arc lint + arc unit

Event Timeline

madpilot created this revision.
This revision is now accepted and ready to land.Sun, Apr 6, 3:52 AM
diizzy added inline comments.
Mk/bsd.ccache.mk
112

From what I can tell by CMake's documentation this is an invalid option.
https://cmake.org/cmake/help/latest/envvar/CMAKE_LANG_COMPILER_LAUNCHER.html

Mk/bsd.ccache.mk
112

Sorry I don't understand, you mean the CPP variant is invalid?

It is not perfectly clear from the documentation page you link, but it is quite possible. Some other code I saw using this made me think it was valid though.

I'm asking just to understand, no problem in dropping this line from my patch.

Remove invalid cmake option.

This revision now requires review to proceed.Sun, Apr 6, 2:02 PM

remove invalid cmake option

Sorry, I pushed a completely unrelated diff I'm still working on, I should have fixed it now.

madpilot marked 2 inline comments as done.
madpilot removed subscribers: imp, ae, melifaro, glebius.