if [[ ${MERGE_TYPE} != binary ]]; then
check-reqs_pkg_pretend
- if [[ $(tc-getCC) == clang ]] ; then
- : # ignore clang, which works
- elif [[ $(gcc-major-version) -lt 4 ]] || {
+ if ! $(tc-is-clang) && [[ $(gcc-major-version) -lt 4 ]] || {
[[ $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 7 ]]; } then
eerror "Compilation with gcc older than 4.7 is not supported"
die "Too old gcc found."
if [[ ${MERGE_TYPE} != binary ]]; then
check-reqs_pkg_pretend
- if [[ $(tc-getCC) == clang ]] ; then
- : # ignore clang, which works
- elif [[ $(gcc-major-version) -lt 4 ]] || {
+ if ! $(tc-is-clang) && [[ $(gcc-major-version) -lt 4 ]] || {
[[ $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 7 ]]; } then
eerror "Compilation with gcc older than 4.7 is not supported"
die "Too old gcc found."
if [[ ${MERGE_TYPE} != binary ]]; then
check-reqs_pkg_pretend
- if [[ $(tc-getCC) == clang ]] ; then
- : # ignore clang, which works
- elif [[ $(gcc-major-version) -lt 4 ]] || {
+ if ! $(tc-is-clang) && [[ $(gcc-major-version) -lt 4 ]] || {
[[ $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 7 ]]; } then
eerror "Compilation with gcc older than 4.7 is not supported"
die "Too old gcc found."