Add initial support for python bindings
[alexxy/gromacs.git] / cmake / TestClangVersion.c
1 int main()
2 {
3 /* This detects 3.0 versions for both C and C++ clang. It detects the
4  * version of the LLVM back end, and not (for example) the Apple clang
5  * version number (which might be 4.1 or some number based on its
6  * "compatibility with gcc 4.2.1," even though the LLVM back end is
7  * 3.0!).
8  *
9  * If/when we have time or user complaints, we can maybe ban earlier
10  * versions of clang, but we don't actually know there's a problem
11  * with them at the time of this commit.
12  */
13 #if (__clang_major__ == 3) && (__clang_minor__ == 0)
14     return 0;
15 #else
16 #error clang version information not found
17 #endif
18 }