mirror of
https://gitee.com/milvus-io/milvus.git
synced 2025-12-06 09:08:43 +08:00
fix: add missing OS_NAME variable in build script for Linux (#40242)
issue: #40243 This helps identify the running OS version during the build process, ensuring better logging. Signed-off-by: Shubhendra Kushwaha <shubhendrakushwaha94@gmail.com>
This commit is contained in:
parent
481938297c
commit
e615e3daa9
@ -66,6 +66,11 @@ case "${unameOut}" in
|
||||
conan install ${CPP_SRC_DIR} --install-folder conan --build=missing -s compiler=clang -s compiler.version=${llvm_version} -s compiler.libcxx=libc++ -s compiler.cppstd=17 -r default-conan-local -u || { echo 'conan install failed'; exit 1; }
|
||||
;;
|
||||
Linux*)
|
||||
if [ -f /etc/os-release ]; then
|
||||
OS_NAME=$(grep '^PRETTY_NAME=' /etc/os-release | cut -d '=' -f2 | tr -d '"')
|
||||
else
|
||||
OS_NAME="Linux"
|
||||
fi
|
||||
echo "Running on ${OS_NAME}"
|
||||
export CPU_TARGET=avx
|
||||
GCC_VERSION=`gcc -dumpversion`
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user