Fix cpuinfo on clang + non-x86
commit5a463c621a223d8030976006159a5b95439181fe
authorMark Abraham <mark.j.abraham@gmail.com>
Tue, 10 Oct 2017 09:22:02 +0000 (10 09:22 +0000)
committerBerk Hess <hess@kth.se>
Fri, 13 Oct 2017 06:31:27 +0000 (13 08:31 +0200)
treebcb08873cc89c419ca49cc150cbd15c286735aa4
parentde8880d96a044308895e89cee820d81da901a5de
Fix cpuinfo on clang + non-x86

Compilers that pretend to be GCC often define such symbols, and the
support for inline assembly does not compile e.g. on ARM. This broke
CPU detection at cmake time, and subsequent compilation. Probably
introduced by commit 863768a4dad. The latest ARM compiler is based on
clang, so we should fix this.

Also de-duplicated some use of compiler target defines

Change-Id: Ia21363b9c0fe112762750d93b9feea267a34319f
src/gromacs/hardware/architecture.h
src/gromacs/hardware/cpuinfo.cpp