mesonbuild/meson

ninja build or ninja reconfigure does not detect dependency changes

Open

#2,475 创建于 2017年10月11日

在 GitHub 查看
 (1 评论) (0 反应) (0 负责人)Python (4,978 star) (1,465 fork)batch import
bugdependencieshelp wanted

描述

Hi,

I've got:

gmime3   = dependency ('gmime-3.0', required : false)
gmime2   = dependency ('gmime-2.6', required : false)

if gmime3.found ()
  gmime = gmime3
  gmime_gir = 'GMime-3.0'
elif gmime2.found ()
  gmime = gmime2
  gmime_gir = 'GMime-2.6'
else
  error ('neither gmime3 or gmime2 available')
  gmime_gir = ''
endif

deps = [ gmime ]

if gmime2 or gmime3 is installed/un-installed ninja reconfigure does not reliably detect the change. E.g. uninstalling gmime3, and installing gmime2 still tries to use gmime3 build commands. Have to delete dir and re-configure. Seems to sometimes work the other way.. which keeps breaking my separate build dir.

贡献者指南

ninja build or ninja reconfigure does not detect dependency changes · mesonbuild/meson#2475 | Good First Issue