webkit-gtk-2.0.0 needs either gcc >= 4.7 or clang >= 3.0, but I am unsure about how to check for clang (as I don't use it, I cannot really test if checking is working), then, we currently only have: if [[ $(tc-getCC) == *gcc ]] && ! version_is_at_least 4.7 $(gcc-version); then die "You need at least GCC 4.7.x for C++11-specific compiler flags" fi How would you improve the check for clang? Thanks Reproducible: Always
CCing clang maintainers to ask for help Thanks!
(In reply to comment #0) > webkit-gtk-2.0.0 needs either gcc >= 4.7 or clang >= 3.0, but I am unsure > about how to check for clang (as I don't use it, I cannot really test if > checking is working), then, we currently only have: > if [[ $(tc-getCC) == *gcc ]] && ! version_is_at_least 4.7 > $(gcc-version); then > die "You need at least GCC 4.7.x for C++11-specific compiler > flags" > fi > > How would you improve the check for clang? > > Thanks > > Reproducible: Always Like this? --- webkit-gtk-2.0.0.ebuild +++ webkit-gtk-2.0.0.ebuild @@ -83,7 +83,7 @@ pkg_pretend() { check-reqs_pkg_pretend fi - if [[ $(tc-getCC) == *gcc ]] && ! version_is_at_least 4.7 $(gcc-version); then + if ! test-flag-CXX -std=c++11; then die "You need at least GCC 4.7.x for C++11-specific compiler flags" fi }
+ 07 Apr 2013; Pacho Ramos <pacho@gentoo.org> -webkit-gtk-1.6.3-r200.ebuild, + -webkit-gtk-1.6.3-r300.ebuild, webkit-gtk-2.0.0.ebuild: + Improve compiler check (#463704 by Alphat-PC), drop old. +