diff --git a/scripts/3rdparty_build.sh b/scripts/3rdparty_build.sh index 401bc87ca9..36377b7ae8 100644 --- a/scripts/3rdparty_build.sh +++ b/scripts/3rdparty_build.sh @@ -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`