From 5af8f058bb6949e84894b86a35b2f9ed4f270540 Mon Sep 17 00:00:00 2001 From: Aiken Harris Date: Mon, 7 Jul 2025 20:21:18 +0200 Subject: [PATCH] Fix build --- build.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/build.sh b/build.sh index 2ec3038..7a76485 100755 --- a/build.sh +++ b/build.sh @@ -211,6 +211,7 @@ llvm_fetch() # This function compiles and installs NINJA ninja_build() { + local EXTENSION="" local NINJA_CXX_COMPILER="" local NINJA_PLATFORM="" @@ -220,6 +221,7 @@ ninja_build() # Additional, target-specific configuration options case "${SYSTEM_NAME}" in Windows) + EXTENSION=".exe" NINJA_CXX_COMPILER="${SYSTEM_HOST}-g++" NINJA_PLATFORM="mingw" ;; @@ -235,7 +237,7 @@ ninja_build() cd ${NINJADIR}/build-${SYSTEM_NAME} CXX=${NINJA_CXX_COMPILER} ../configure.py --platform=${NINJA_PLATFORM} ninja - install ninja ${BINDIR}/bin/ + install ninja${EXTENSION} ${BINDIR}/bin/ cd ${WRKDIR} } @@ -327,7 +329,7 @@ wine_build() ${CONFIGURE_PARAMETERS} for TOOL in widl wmc wrc; do make -j20 tools/${TOOL}/all - cp tools/${TOOL}/${TOOL}${ENTENSION} ${BINDIR}/bin/ + cp tools/${TOOL}/${TOOL}${EXTENSION} ${BINDIR}/bin/ done cd ${WRKDIR} } @@ -350,7 +352,7 @@ xtchain_build() # Target-specific configuration options case "${SYSTEM_NAME}" in Windows) - CCOMPILER="${SYSTEM_HOST-gcc}" + CCOMPILER="${SYSTEM_HOST}-gcc" EXTENSION=".ps1" ;; *)