Mercurial > vim
changeset 24897:80edcb27d19a v8.2.2986
patch 8.2.2986: build failure without the profile feature
Commit: https://github.com/vim/vim/commit/d9f31c13d217b4b97f724774a67a6d1f8640e8ae
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Jun 13 14:15:29 2021 +0200
patch 8.2.2986: build failure without the profile feature
Problem: Build failure without the profile feature.
Solution: Add #ifdef.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 13 Jun 2021 14:30:03 +0200 |
parents | fbfa2a82bc87 |
children | f8556206b6f9 |
files | src/version.c src/vim9compile.c |
diffstat | 2 files changed, 6 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/version.c +++ b/src/version.c @@ -751,6 +751,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 2986, +/**/ 2985, /**/ 2984,
--- a/src/vim9compile.c +++ b/src/vim9compile.c @@ -1871,10 +1871,12 @@ func_needs_compiling(ufunc_T *ufunc, com switch (compile_type) { + case CT_PROFILE: +#ifdef FEAT_PROFILE + return dfunc->df_instr_prof == NULL; +#endif case CT_NONE: return dfunc->df_instr == NULL; - case CT_PROFILE: - return dfunc->df_instr_prof == NULL; case CT_DEBUG: return dfunc->df_instr_debug == NULL; }