mirror of
https://github.com/facebook/proxygen.git
synced 2025-08-05 19:55:47 +03:00
getdeps: add support for using ccache in cmake builds
Summary: if we find ccache in the path, then we instruct cmake to use it as the compiler launcher. Reviewed By: pkaush Differential Revision: D15375441 fbshipit-source-id: 602fe54742a5ec07b0533bd2cf63cb905b051e85
This commit is contained in:
committed by
Facebook Github Bot
parent
b53c492f49
commit
f59ea3f561
@@ -229,6 +229,9 @@ class CMakeBuilder(BuilderBase):
|
||||
"CMAKE_BUILD_TYPE": "RelWithDebInfo",
|
||||
}
|
||||
env = self._compute_env(install_dirs)
|
||||
ccache = path_search(env, "ccache")
|
||||
if ccache:
|
||||
defines["CMAKE_CXX_COMPILER_LAUNCHER"] = ccache
|
||||
if self.build_opts.is_darwin():
|
||||
# Try to persuade cmake to set the rpath to match the lib
|
||||
# dirs of the dependencies. This isn't automatic, and to
|
||||
|
Reference in New Issue
Block a user