[BugFix] disable ASAN build when gcov is enabled to avoid link failure (backport #59587) (#59683)

Signed-off-by: cutiechi <superchijinpeng@gmail.com>
Co-authored-by: cutiechi <superchijinpeng@gmail.com>
This commit is contained in:
mergify[bot] 2025-06-06 13:35:25 +08:00 committed by GitHub
parent dbd6def820
commit c00c2d3956
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 10 additions and 0 deletions

View File

@ -303,6 +303,11 @@ else
done
fi
if [[ "${BUILD_TYPE}" == "ASAN" && "${WITH_GCOV}" == "ON" ]]; then
echo "Error: ASAN and gcov cannot be enabled at the same time. Please disable one of them."
exit 1
fi
if [[ ${HELP} -eq 1 ]]; then
usage
exit

View File

@ -141,6 +141,11 @@ while true; do
esac
done
if [[ "${BUILD_TYPE}" == "ASAN" && "${WITH_GCOV}" == "ON" ]]; then
echo "Error: ASAN and gcov cannot be enabled at the same time. Please disable one of them."
exit 1
fi
if [ ${HELP} -eq 1 ]; then
usage
exit 0