forked from OSchip/llvm-project
Attempting to fix the build on older GCC versions.
llvm-svn: 178604
This commit is contained in:
parent
a0e9d39b55
commit
56be6ba5e4
|
@ -113,7 +113,8 @@ static bool GetX86CpuIDAndInfo(unsigned value, unsigned *rEAX,
|
|||
}
|
||||
|
||||
static bool OSHasAVXSupport() {
|
||||
#if defined(__GNUC__)
|
||||
#if defined( __GNUC__ ) && \
|
||||
(__GNUC__ > 4 || __GNUC__ == 4 && __GNUC_MINOR__ >= 4)
|
||||
int rEAX, rEDX;
|
||||
__asm__ ("xgetbv" : "=a" (rEAX), "=d" (rEDX) : "c" (0));
|
||||
#elif defined(_MSC_VER)
|
||||
|
|
Loading…
Reference in New Issue