Don't check the host OS when determining host ABI
This commit is contained in:
parent
687cf31063
commit
aab10621cc
1 changed files with 4 additions and 4 deletions
|
|
@ -5,15 +5,15 @@ namespace pslang::jit
|
||||||
|
|
||||||
abi host_abi()
|
abi host_abi()
|
||||||
{
|
{
|
||||||
#if defined(__linux__) and defined(__x86_64__)
|
#if defined(__x86_64__)
|
||||||
return abi::itanium;
|
return abi::itanium;
|
||||||
#elif defined(__APPLE__) and defined(__ARM64_ARCH_8__)
|
#elif defined(__ARM64_ARCH_8__)
|
||||||
return abi::armv8;
|
return abi::armv8;
|
||||||
#elif defined(_WIN64) and defined(_M_AMD64)
|
#elif defined(_M_AMD64)
|
||||||
return abi::msvs;
|
return abi::msvs;
|
||||||
#else
|
#else
|
||||||
#error Unknown host ABI
|
#error Unknown host ABI
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue