build system: disable pre-compiled headers when compiling with zapcc

zapcc seems to have problems (linker errors) sometimes if pre-compiled
headers are enabled. The home page even says they're not supported. So
simply disable them.
This commit is contained in:
Moritz Bunkus 2018-09-18 21:35:56 +02:00
parent 8f487f0cb3
commit a684d519bb
No known key found for this signature in database
GPG Key ID: 74AF00ADF2E32C85

View File

@ -189,10 +189,15 @@ def setup_macos_specifics
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))
if %r{zapcc}.match(c(:CXX) + c(:CC))
# 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"
# zapcc doesn't support pre-compiled headers.
ENV['USE_PRECOMPILED_HEADERS'] = "0"
end
end
def define_default_task