From 101243265bbf047b26ed57b26b6afc7e68b8d607 Mon Sep 17 00:00:00 2001 From: Lukas Rusak Date: Thu, 29 Sep 2016 12:17:51 -0700 Subject: [PATCH] scripts/build: use debug option for target instead of host --- scripts/build | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/scripts/build b/scripts/build index 31cf7c611f..8615db6b63 100755 --- a/scripts/build +++ b/scripts/build @@ -125,9 +125,15 @@ if [ ! -f $STAMP ]; then --disable-static \ --enable-shared" + if [ "$DEBUG" = "yes" ]; then + CMAKE_BUILD_TYPE="Debug" + else + CMAKE_BUILD_TYPE="Release" + fi + TARGET_CMAKE_OPTS="-DCMAKE_TOOLCHAIN_FILE=$CMAKE_CONF \ -DCMAKE_INSTALL_PREFIX=/usr \ - -DCMAKE_BUILD_TYPE=Release" + -DCMAKE_BUILD_TYPE=$CMAKE_BUILD_TYPE" # configure HOST build defaults HOST_CONFIGURE_OPTS="--host=$HOST_NAME \ @@ -141,15 +147,9 @@ if [ ! -f $STAMP ]; then --disable-static \ --enable-shared" - if [ "$DEBUG" = "yes" ]; then - CMAKE_BUILD_TYPE="Debug" - else - CMAKE_BUILD_TYPE="Release" - fi - HOST_CMAKE_OPTS="-DCMAKE_TOOLCHAIN_FILE=$CMAKE_CONF \ -DCMAKE_INSTALL_PREFIX=$ROOT/$TOOLCHAIN \ - -DCMAKE_BUILD_TYPE=$CMAKE_BUILD_TYPE" + -DCMAKE_BUILD_TYPE=Release" # configure INIT build defaults INIT_CONFIGURE_OPTS="$TARGET_CONFIGURE_OPTS"