msvc: Do not include pch obj when b_pch=false

Fixes: #12494
pull/12258/merge
Xavier Claessens 1 year ago committed by Xavier Claessens
parent 2ea284bac1
commit 42898bb455
  1. 2
      mesonbuild/backend/backends.py

@ -896,7 +896,7 @@ class Backend:
result.append(s.relative_name())
# MSVC generate an object file for PCH
if extobj.pch:
if extobj.pch and self.target_uses_pch(extobj.target):
for lang, pch in extobj.target.pch.items():
compiler = extobj.target.compilers[lang]
if compiler.get_argument_syntax() == 'msvc':

Loading…
Cancel
Save