Fix build
This commit is contained in:
parent
27ef533511
commit
5af8f058bb
8
build.sh
8
build.sh
@ -211,6 +211,7 @@ llvm_fetch()
|
|||||||
# This function compiles and installs NINJA
|
# This function compiles and installs NINJA
|
||||||
ninja_build()
|
ninja_build()
|
||||||
{
|
{
|
||||||
|
local EXTENSION=""
|
||||||
local NINJA_CXX_COMPILER=""
|
local NINJA_CXX_COMPILER=""
|
||||||
local NINJA_PLATFORM=""
|
local NINJA_PLATFORM=""
|
||||||
|
|
||||||
@ -220,6 +221,7 @@ ninja_build()
|
|||||||
# Additional, target-specific configuration options
|
# Additional, target-specific configuration options
|
||||||
case "${SYSTEM_NAME}" in
|
case "${SYSTEM_NAME}" in
|
||||||
Windows)
|
Windows)
|
||||||
|
EXTENSION=".exe"
|
||||||
NINJA_CXX_COMPILER="${SYSTEM_HOST}-g++"
|
NINJA_CXX_COMPILER="${SYSTEM_HOST}-g++"
|
||||||
NINJA_PLATFORM="mingw"
|
NINJA_PLATFORM="mingw"
|
||||||
;;
|
;;
|
||||||
@ -235,7 +237,7 @@ ninja_build()
|
|||||||
cd ${NINJADIR}/build-${SYSTEM_NAME}
|
cd ${NINJADIR}/build-${SYSTEM_NAME}
|
||||||
CXX=${NINJA_CXX_COMPILER} ../configure.py --platform=${NINJA_PLATFORM}
|
CXX=${NINJA_CXX_COMPILER} ../configure.py --platform=${NINJA_PLATFORM}
|
||||||
ninja
|
ninja
|
||||||
install ninja ${BINDIR}/bin/
|
install ninja${EXTENSION} ${BINDIR}/bin/
|
||||||
cd ${WRKDIR}
|
cd ${WRKDIR}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -327,7 +329,7 @@ wine_build()
|
|||||||
${CONFIGURE_PARAMETERS}
|
${CONFIGURE_PARAMETERS}
|
||||||
for TOOL in widl wmc wrc; do
|
for TOOL in widl wmc wrc; do
|
||||||
make -j20 tools/${TOOL}/all
|
make -j20 tools/${TOOL}/all
|
||||||
cp tools/${TOOL}/${TOOL}${ENTENSION} ${BINDIR}/bin/
|
cp tools/${TOOL}/${TOOL}${EXTENSION} ${BINDIR}/bin/
|
||||||
done
|
done
|
||||||
cd ${WRKDIR}
|
cd ${WRKDIR}
|
||||||
}
|
}
|
||||||
@ -350,7 +352,7 @@ xtchain_build()
|
|||||||
# Target-specific configuration options
|
# Target-specific configuration options
|
||||||
case "${SYSTEM_NAME}" in
|
case "${SYSTEM_NAME}" in
|
||||||
Windows)
|
Windows)
|
||||||
CCOMPILER="${SYSTEM_HOST-gcc}"
|
CCOMPILER="${SYSTEM_HOST}-gcc"
|
||||||
EXTENSION=".ps1"
|
EXTENSION=".ps1"
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user