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" |