Commit 3fedd978 authored by Max Kellermann's avatar Max Kellermann

python/build/meson: disable ccache because Meson detects it automatically

parent a9f1bed9
......@@ -6,6 +6,11 @@ from typing import Optional, Sequence, Union
from build.project import Project
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:
if toolchain.is_windows:
system = 'windows'
......@@ -40,8 +45,8 @@ def make_cross_file(toolchain: AnyToolchain) -> str:
with open(path, 'w') as f:
f.write(f"""
[binaries]
c = '{toolchain.cc}'
cpp = '{toolchain.cxx}'
c = '{__no_ccache(toolchain.cc)}'
cpp = '{__no_ccache(toolchain.cxx)}'
ar = '{toolchain.ar}'
strip = '{toolchain.strip}'
pkgconfig = '{toolchain.pkg_config}'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment