python/build/meson: disable ccache because Meson detects it automatically
This commit is contained in:
parent
a9f1bed922
commit
3fedd978a2
|
@ -6,6 +6,11 @@ from typing import Optional, Sequence, Union
|
||||||
from build.project import Project
|
from build.project import Project
|
||||||
from .toolchain import AnyToolchain
|
from .toolchain import AnyToolchain
|
||||||
|
|
||||||
|
def __no_ccache(cmd: str) -> str:
|
||||||
|
if cmd.startswith('ccache '):
|
||||||
|
cmd = cmd[7:]
|
||||||
|
return cmd
|
||||||
|
|
||||||
def make_cross_file(toolchain: AnyToolchain) -> str:
|
def make_cross_file(toolchain: AnyToolchain) -> str:
|
||||||
if toolchain.is_windows:
|
if toolchain.is_windows:
|
||||||
system = 'windows'
|
system = 'windows'
|
||||||
|
@ -40,8 +45,8 @@ def make_cross_file(toolchain: AnyToolchain) -> str:
|
||||||
with open(path, 'w') as f:
|
with open(path, 'w') as f:
|
||||||
f.write(f"""
|
f.write(f"""
|
||||||
[binaries]
|
[binaries]
|
||||||
c = '{toolchain.cc}'
|
c = '{__no_ccache(toolchain.cc)}'
|
||||||
cpp = '{toolchain.cxx}'
|
cpp = '{__no_ccache(toolchain.cxx)}'
|
||||||
ar = '{toolchain.ar}'
|
ar = '{toolchain.ar}'
|
||||||
strip = '{toolchain.strip}'
|
strip = '{toolchain.strip}'
|
||||||
pkgconfig = '{toolchain.pkg_config}'
|
pkgconfig = '{toolchain.pkg_config}'
|
||||||
|
|
Loading…
Reference in New Issue