mirror of
https://gitlab.com/mbunkus/mkvtoolnix.git
synced 2024-10-22 07:21:21 +00:00
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:
parent
8f487f0cb3
commit
a684d519bb
13
Rakefile
13
Rakefile
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user