mirror of
https://github.com/vim/vim.git
synced 2025-09-24 03:44:06 -04:00
patch 8.2.2986: build failure without the profile feature
Problem: Build failure without the profile feature. Solution: Add #ifdef.
This commit is contained in:
@@ -750,6 +750,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
2986,
|
||||||
/**/
|
/**/
|
||||||
2985,
|
2985,
|
||||||
/**/
|
/**/
|
||||||
|
@@ -1871,10 +1871,12 @@ func_needs_compiling(ufunc_T *ufunc, compiletype_T compile_type)
|
|||||||
|
|
||||||
switch (compile_type)
|
switch (compile_type)
|
||||||
{
|
{
|
||||||
|
case CT_PROFILE:
|
||||||
|
#ifdef FEAT_PROFILE
|
||||||
|
return dfunc->df_instr_prof == NULL;
|
||||||
|
#endif
|
||||||
case CT_NONE:
|
case CT_NONE:
|
||||||
return dfunc->df_instr == NULL;
|
return dfunc->df_instr == NULL;
|
||||||
case CT_PROFILE:
|
|
||||||
return dfunc->df_instr_prof == NULL;
|
|
||||||
case CT_DEBUG:
|
case CT_DEBUG:
|
||||||
return dfunc->df_instr_debug == NULL;
|
return dfunc->df_instr_debug == NULL;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user