summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2021-06-13 14:15:29 +0200
committerBram Moolenaar <Bram@vim.org>2021-06-13 14:15:29 +0200
commitd9f31c13d217b4b97f724774a67a6d1f8640e8ae (patch)
tree8fd2f22cdf87cd8ecc045b783c66baaed2e57fa3
parente99d422bbd3e47620915bf89671673f0711671b4 (diff)
downloadvim-git-8.2.2986.tar.gz
patch 8.2.2986: build failure without the profile featurev8.2.2986
Problem: Build failure without the profile feature. Solution: Add #ifdef.
-rw-r--r--src/version.c2
-rw-r--r--src/vim9compile.c6
2 files changed, 6 insertions, 2 deletions
diff --git a/src/version.c b/src/version.c
index ad399ce48..52e4a462b 100644
--- 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,
diff --git a/src/vim9compile.c b/src/vim9compile.c
index 7c0190677..1747f30fd 100644
--- a/src/vim9compile.c
+++ b/src/vim9compile.c
@@ -1871,10 +1871,12 @@ func_needs_compiling(ufunc_T *ufunc, compiletype_T compile_type)
switch (compile_type)
{
- case CT_NONE:
- return dfunc->df_instr == NULL;
case CT_PROFILE:
+#ifdef FEAT_PROFILE
return dfunc->df_instr_prof == NULL;
+#endif
+ case CT_NONE:
+ return dfunc->df_instr == NULL;
case CT_DEBUG:
return dfunc->df_instr_debug == NULL;
}