Skip to content

Commit

Permalink
use dumpfullversion to retrieve gcc version in custom qt 5 package sc…
Browse files Browse the repository at this point in the history
…ript
  • Loading branch information
royqh1979 committed Dec 18, 2024
1 parent b28bce7 commit 2eace1c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/msys/build-qt5.sh
Original file line number Diff line number Diff line change
Expand Up @@ -169,9 +169,9 @@ fi

GCC_VERSION=""
if [[ ${COMPILER_MINGW32} -eq 1 && ! -d "${ASSETS_DIR}/${MINGW32_FOLDER}" ]]; then
GCC_VERSION=$( "${ASSETS_DIR}/${MINGW32_FOLDER}/bin/gcc" "-dumpversion" )
GCC_VERSION=$( "${ASSETS_DIR}/${MINGW32_FOLDER}/bin/gcc" "-dumpfullversion" )
else
GCC_VERSION=$( "${ASSETS_DIR}/${MINGW64_FOLDER}/bin/gcc" "-dumpversion")
GCC_VERSION=$( "${ASSETS_DIR}/${MINGW64_FOLDER}/bin/gcc" "-dumpfullversion")
fi

MINGW32_COMPILER_NAME="MinGW-w64 i686 GCC ${GCC_VERSION}"
Expand Down

0 comments on commit 2eace1c

Please sign in to comment.