mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-12 17:32:19 +00:00
Attempting to fix the build on older GCC versions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@178604 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
a964ad5c34
commit
95a16c4dbb
@ -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…
x
Reference in New Issue
Block a user