clang: prevent detecting clang as gcc
This commit is contained in:
parent
8928bd4d7b
commit
389370d01e
|
@ -26,8 +26,10 @@
|
|||
|
||||
// If building with GNU compiler, then must be 4.9 or later.
|
||||
// TODO: This would be much nicer as a standalone test in configure.ac
|
||||
#if !defined(__APPLE__) && defined __GNUC__ && ( __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 9))
|
||||
#error insufficient compiler
|
||||
#if !defined(__APPLE__) && !defined(__clang__) && \
|
||||
defined __GNUC__ && ( __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 9))
|
||||
|
||||
#error Audacity requires at least GCC 4.9
|
||||
#endif
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user