diff options
author | Andres Freund <andres@anarazel.de> | 2018-08-24 10:20:55 -0700 |
---|---|---|
committer | Andres Freund <andres@anarazel.de> | 2018-08-24 10:21:38 -0700 |
commit | cb92520563834577d3afbbedcc0df4ee0aac3445 (patch) | |
tree | 522a20456828dc17bb65fba7f0dc2c6a32ea759e /src/backend/jit | |
parent | b0c5da615ec45bcd24b97a1d55b1f489b9830a4b (diff) | |
download | postgresql-cb92520563834577d3afbbedcc0df4ee0aac3445.tar.gz |
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.
Diffstat (limited to 'src/backend/jit')
-rw-r--r-- | src/backend/jit/llvm/llvmjit_wrap.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/backend/jit/llvm/llvmjit_wrap.cpp b/src/backend/jit/llvm/llvmjit_wrap.cpp index 5d1a17cde0..4d0c3f680f 100644 --- a/src/backend/jit/llvm/llvmjit_wrap.cpp +++ b/src/backend/jit/llvm/llvmjit_wrap.cpp @@ -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 |