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:
2026-03-30 19:20:40 +03:00
parent bb72c9b049
commit 0ef34c8a10
2 changed files with 47 additions and 22 deletions

View File

@@ -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