Enhance build-libraries.sh and env.sh for toolchain integration
- Updated build-libraries.sh to consistently use the --toolchain flag for environment registration and unregistration. - Modified env.sh to clarify usage instructions and enforce the --toolchain option for environment setup, improving user experience and consistency in toolchain management.
This commit is contained in:
@@ -10,7 +10,7 @@ INSTALL_DIR="${TOP}/build/install"
|
||||
INSTALL_BIN_DIR="${INSTALL_DIR}/bin"
|
||||
|
||||
# Запускаем предварительно для того чтобы подтянуть переменные
|
||||
. ./env.sh --register "${INSTALL_DIR}"
|
||||
. ./env.sh --toolchain --register "${INSTALL_DIR}"
|
||||
|
||||
# Сбрасываем CFLAGS/CXXFLAGS — все флаги уже встроены в CC/CXX
|
||||
export CFLAGS=""
|
||||
@@ -78,7 +78,7 @@ echo "== Распаковка завершена =="
|
||||
# ==================================================================
|
||||
|
||||
cd ${TOP}
|
||||
. ./env.sh --register "${INSTALL_DIR}" "rc"
|
||||
. ./env.sh --toolchain --register "${INSTALL_DIR}" "rc"
|
||||
export CFLAGS=""
|
||||
export CXXFLAGS=""
|
||||
|
||||
@@ -90,7 +90,7 @@ make install
|
||||
# ==================================================================
|
||||
|
||||
cd ${TOP}
|
||||
. ./env.sh --register "${INSTALL_DIR}"
|
||||
. ./env.sh --toolchain --register "${INSTALL_DIR}"
|
||||
export CFLAGS=""
|
||||
export CXXFLAGS=""
|
||||
|
||||
@@ -174,4 +174,4 @@ make install
|
||||
# ==================================================================
|
||||
|
||||
cd ${TOP}
|
||||
. ./env.sh --unregister
|
||||
. ./env.sh --toolchain --unregister
|
||||
Reference in New Issue
Block a user