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