s390x/DYNAMIC_ARCH: generalize detecting supported archs for clang
authorMarius Hillenbrand <mhillen@linux.ibm.com>
Fri, 4 Sep 2020 14:32:45 +0000 (16:32 +0200)
committerMarius Hillenbrand <mhillen@linux.ibm.com>
Tue, 8 Sep 2020 17:34:18 +0000 (19:34 +0200)
commit0629d8ebdb98995b995ac4593c98f7721703c8fc
tree7138e51f658f7e97931a41a67c7ff5e51369a96b
parent15da2f9acb31f5edd8f52b0b90661ad871a396ca
s390x/DYNAMIC_ARCH: generalize detecting supported archs for clang

Simplify detection of which kernels we can compile on s390x. Instead of
decoding the gcc version in a complicated manner, just check if CC
supports a given -march=archXY flag. Together with the next patch, we
thereby gain support for builds with LLVM/clang with DYNAMIC_ARCH=1.

Signed-off-by: Marius Hillenbrand <mhillen@linux.ibm.com>
Makefile.system