Commit 9add78ae authored by Wez Furlong's avatar Wez Furlong Committed by Facebook Github Bot

getdeps: disable ccache on sandcastle

Summary:
We sometimes see some flakeyness in our internal CI, so we can live
without it there.

Reviewed By: pkaush

Differential Revision: D15695124

fbshipit-source-id: 1d76ae89e245d9c95937e8818826c544c0ae8fc3
parent 754409b4
...@@ -271,6 +271,10 @@ class CMakeBuilder(BuilderBase): ...@@ -271,6 +271,10 @@ class CMakeBuilder(BuilderBase):
"CMAKE_BUILD_TYPE": "RelWithDebInfo", "CMAKE_BUILD_TYPE": "RelWithDebInfo",
} }
env = self._compute_env(install_dirs) env = self._compute_env(install_dirs)
if "SANDCASTLE" not in os.environ:
# We sometimes see intermittent ccache related breakages on some
# of the FB internal CI hosts, so we prefer to disable ccache
# when running in that environment.
ccache = path_search(env, "ccache") ccache = path_search(env, "ccache")
if ccache: if ccache:
defines["CMAKE_CXX_COMPILER_LAUNCHER"] = ccache defines["CMAKE_CXX_COMPILER_LAUNCHER"] = ccache
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment