make GCC version detection OS-independent
authorGuodong Xu <guodong.xu@linaro.com>
Mon, 25 May 2020 10:40:12 +0000 (10:40 +0000)
committerGuodong Xu <guodong.xu@linaro.com>
Mon, 25 May 2020 10:57:03 +0000 (10:57 +0000)
commit06387ac0e6c29d636dee1ae7d7c935dd9180591d
treedb90d812ffad144da61247d282460a089a3afa9e
parent729ac6bd4a9971e83b2a110eb62d68e25df74846
make GCC version detection OS-independent

Previous design put GCC version detection inside of OSNAME 'WINNT'.
However, such detections are required for 'Linux' and possibly other
OS'es as well. For example, there is usage of the GCC versions
in Makefile.arm64. When compiling on Linux machine, in the previous
design, Markfile.arm64 will not know the correct GCC version.

The fix is to move GCC version detection into common part, not
wrapped by anything.

Signed-off-by: Guodong Xu <guodong.xu@linaro.com>
Makefile.system