Bug 1676307 - Search for sccache in the toolchain search path. r=firefox-build-system-reviewers,mhentges

So that ac_add_options --with-ccache=sccache just works.

Differential Revision: https://phabricator.services.mozilla.com/D96501
This commit is contained in:
Emilio Cobos Álvarez 2020-11-10 13:11:49 +00:00
parent 540b640357
commit 440671e906

View File

@ -712,6 +712,7 @@ def toolchain_search_path_for(host_or_target):
["dump_syms"],
["nasm"],
["lucetc"],
["sccache"],
)
]
@ -789,7 +790,9 @@ def ccache(value):
return "ccache"
ccache = check_prog("CCACHE", progs=(), input=ccache)
ccache = check_prog(
"CCACHE", progs=(), input=ccache, paths=toolchain_search_path, allow_missing=True
)
option(env="CCACHE_PREFIX", nargs=1, help="Compiler prefix to use when using ccache")