mirror of
https://github.com/postgres/postgres.git
synced 2025-07-08 11:42:09 +03:00
LLVMJIT: LLVMGetHostCPUFeatures now is upstream, use LLMV version if available.
Noticed thanks to buildfarm animal seawasp. Author: Andres Freund Backpatch: v11-, where LLVM based JIT compliation was introduced.
This commit is contained in:
@ -32,6 +32,7 @@ char *LLVMGetHostCPUName(void) {
|
||||
#endif
|
||||
|
||||
|
||||
#if defined(HAVE_DECL_LLVMGETHOSTCPUFEATURES) && !HAVE_DECL_LLVMGETHOSTCPUFEATURES
|
||||
char *LLVMGetHostCPUFeatures(void) {
|
||||
llvm::SubtargetFeatures Features;
|
||||
llvm::StringMap<bool> HostFeatures;
|
||||
@ -42,3 +43,4 @@ char *LLVMGetHostCPUFeatures(void) {
|
||||
|
||||
return strdup(Features.getString().c_str());
|
||||
}
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user