diff --git a/tools/build/configure.py b/tools/build/configure.py index 41d7541609..161682227c 100755 --- a/tools/build/configure.py +++ b/tools/build/configure.py @@ -49,8 +49,8 @@ def write_ninja_rules(ninja: ninja_syntax.Writer, cpp: str, cppflags: str, extra ccache = "" cross = "mips-linux-gnu-" - cc = f"{ccache}{BUILD_TOOLS}/cc/gcc/gcc" - cxx = f"{ccache}{BUILD_TOOLS}/cc/gcc/g++" + cc = f"{BUILD_TOOLS}/cc/gcc/gcc" + cxx = f"{BUILD_TOOLS}/cc/gcc/g++" compile_script = f"$python {BUILD_TOOLS}/cc_dsl/compile_script.py" CPPFLAGS = "-w -Iver/$version/build/include -Iinclude -Isrc -Iassets/$version -D_LANGUAGE_C -D_FINALROM -DVERSION=$version " \ @@ -82,7 +82,7 @@ def write_ninja_rules(ninja: ninja_syntax.Writer, cpp: str, cppflags: str, extra ninja.rule("cc", description="cc $in", - command=f"bash -o pipefail -c '{cpp} {CPPFLAGS} {cppflags} -MD -MF $out.d $in -o - | {iconv} > $out.i && {cc} {cflags} $cflags $out.i -o $out'", + command=f"bash -o pipefail -c '{cpp} {CPPFLAGS} {cppflags} -MD -MF $out.d $in -o - | {iconv} > $out.i && {ccache}{cc} {cflags} $cflags $out.i -o $out'", depfile="$out.d", deps="gcc", ) @@ -96,7 +96,7 @@ def write_ninja_rules(ninja: ninja_syntax.Writer, cpp: str, cppflags: str, extra ninja.rule("cxx", description="cxx $in", - command=f"bash -o pipefail -c '{cpp} {CPPFLAGS} {cppflags} -MD -MF $out.d $in -o - | {iconv} > $out.i && {cxx} {cflags} $cflags $out.i -o $out'", + command=f"bash -o pipefail -c '{cpp} {CPPFLAGS} {cppflags} -MD -MF $out.d $in -o - | {iconv} > $out.i && {ccache}{cxx} {cflags} $cflags $out.i -o $out'", depfile="$out.d", deps="gcc", )