build system: disable ccache when compiling with zapcc

ccache and certain versions of zapcc don't seem to be playing well
together. As zapcc's servers do the caching already, disable ccache if
compiling with zapcc.
This commit is contained in:
Moritz Bunkus 2018-09-18 21:18:10 +02:00
parent 2de41123fb
commit 8f487f0cb3
No known key found for this signature in database
GPG Key ID: 74AF00ADF2E32C85

View File

@ -168,6 +168,7 @@ def setup_globals
}
setup_macos_specifics if $building_for[:macos]
setup_compiler_specifics
$build_system_modules.values.each { |bsm| bsm[:setup].call if bsm[:setup] }
end
@ -187,6 +188,13 @@ def setup_macos_specifics
end
end
def setup_compiler_specifics
# ccache and certain versions of zapcc don't seem to be playing well
# together. As zapcc's servers do the caching already, disable
# ccache if compiling with zapcc.
ENV['CCACHE_DISABLE'] = "1" if %r{zapcc}.match(c(:CXX) + c(:CC))
end
def define_default_task
desc "Build everything"