summaryrefslogtreecommitdiff
path: root/profiles/default/linux/ppc64le/17.0/ieee-long-double/profile.bashrc
blob: d08b2104b5c01c184ca0cbb995d71e3a60fe0b0e (plain)
1
2
3
4
5
6
7
8
9
10
11
if [[ "${EBUILD_PHASE}" == "setup" ]] ; then
        if [[ ${CATEGORY}/${PN} != sys-devel/gcc ]]; then
                if [[ $(${CC:-cc} -E -dM - < /dev/null | grep -o '__LDBL_MANT_DIG__ .*') != "__LDBL_MANT_DIG__ 113" ]]; then
			eerror
                        eerror "${CC:-cc} should provide ieee-long-double on this profile by default"
                        eerror "reinstall sys-devel/gcc with USE=ieee-long-double and try again."
			eerror
			die "install >=sys-devel/gcc-12[ieee-long-double] OR >=sys-devel/clang-15.0.5[ieee-long-double]"
                fi
        fi
fi