mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-28 13:16:41 +00:00
scripts/build: use debug option for target instead of host
This commit is contained in:
parent
4127c48843
commit
101243265b
@ -125,9 +125,15 @@ if [ ! -f $STAMP ]; then
|
|||||||
--disable-static \
|
--disable-static \
|
||||||
--enable-shared"
|
--enable-shared"
|
||||||
|
|
||||||
|
if [ "$DEBUG" = "yes" ]; then
|
||||||
|
CMAKE_BUILD_TYPE="Debug"
|
||||||
|
else
|
||||||
|
CMAKE_BUILD_TYPE="Release"
|
||||||
|
fi
|
||||||
|
|
||||||
TARGET_CMAKE_OPTS="-DCMAKE_TOOLCHAIN_FILE=$CMAKE_CONF \
|
TARGET_CMAKE_OPTS="-DCMAKE_TOOLCHAIN_FILE=$CMAKE_CONF \
|
||||||
-DCMAKE_INSTALL_PREFIX=/usr \
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
||||||
-DCMAKE_BUILD_TYPE=Release"
|
-DCMAKE_BUILD_TYPE=$CMAKE_BUILD_TYPE"
|
||||||
|
|
||||||
# configure HOST build defaults
|
# configure HOST build defaults
|
||||||
HOST_CONFIGURE_OPTS="--host=$HOST_NAME \
|
HOST_CONFIGURE_OPTS="--host=$HOST_NAME \
|
||||||
@ -141,15 +147,9 @@ if [ ! -f $STAMP ]; then
|
|||||||
--disable-static \
|
--disable-static \
|
||||||
--enable-shared"
|
--enable-shared"
|
||||||
|
|
||||||
if [ "$DEBUG" = "yes" ]; then
|
|
||||||
CMAKE_BUILD_TYPE="Debug"
|
|
||||||
else
|
|
||||||
CMAKE_BUILD_TYPE="Release"
|
|
||||||
fi
|
|
||||||
|
|
||||||
HOST_CMAKE_OPTS="-DCMAKE_TOOLCHAIN_FILE=$CMAKE_CONF \
|
HOST_CMAKE_OPTS="-DCMAKE_TOOLCHAIN_FILE=$CMAKE_CONF \
|
||||||
-DCMAKE_INSTALL_PREFIX=$ROOT/$TOOLCHAIN \
|
-DCMAKE_INSTALL_PREFIX=$ROOT/$TOOLCHAIN \
|
||||||
-DCMAKE_BUILD_TYPE=$CMAKE_BUILD_TYPE"
|
-DCMAKE_BUILD_TYPE=Release"
|
||||||
|
|
||||||
# configure INIT build defaults
|
# configure INIT build defaults
|
||||||
INIT_CONFIGURE_OPTS="$TARGET_CONFIGURE_OPTS"
|
INIT_CONFIGURE_OPTS="$TARGET_CONFIGURE_OPTS"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user