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/include/jit/llvmjit.h | |
parent | b0c5da615ec45bcd24b97a1d55b1f489b9830a4b (diff) |
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/include/jit/llvmjit.h')
-rw-r--r-- | src/include/jit/llvmjit.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/include/jit/llvmjit.h b/src/include/jit/llvmjit.h index b0093db49d7..c81cff8a35f 100644 --- a/src/include/jit/llvmjit.h +++ b/src/include/jit/llvmjit.h @@ -125,9 +125,11 @@ extern LLVMValueRef slot_compile_deform(struct LLVMJitContext *context, TupleDes extern char *LLVMGetHostCPUName(void); #endif +#if defined(HAVE_DECL_LLVMGETHOSTCPUFEATURES) && !HAVE_DECL_LLVMGETHOSTCPUFEATURES /** Get the host CPU features as a string. The result needs to be disposed with LLVMDisposeMessage. */ extern char *LLVMGetHostCPUFeatures(void); +#endif #ifdef __cplusplus } /* extern "C" */ |