Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 478810 | Differences between
and this patch

Collapse All | Expand All

(-)a/toolchain-funcs.eclass (+2 lines)
Lines 483-488 tc-endian() { Link Here
483
# Query the preprocessor to improve compatibility across different
483
# Query the preprocessor to improve compatibility across different
484
# compilers rather than maintaining a --version flag matrix. #335943
484
# compilers rather than maintaining a --version flag matrix. #335943
485
_gcc_fullversion() {
485
_gcc_fullversion() {
486
	local opt=""
487
	[[ $(tc-getCPP) == clang-cpp ]] || opt="-E"
486
	local ver="$1"; shift
488
	local ver="$1"; shift
487
	set -- `$(tc-getCPP "$@") -E -P - <<<"__GNUC__ __GNUC_MINOR__ __GNUC_PATCHLEVEL__"`
489
	set -- `$(tc-getCPP "$@") -E -P - <<<"__GNUC__ __GNUC_MINOR__ __GNUC_PATCHLEVEL__"`
488
	eval echo "$ver"
490
	eval echo "$ver"

Return to bug 478810