BUG: Don't add debug files as targets when not building in debug mode

pull/10940/head
Thomas Li 3 years ago committed by Eli Schwartz
parent 7912901acc
commit 2761131ff9
  1. 6
      mesonbuild/build.py

@ -2075,13 +2075,15 @@ class SharedLibrary(BuildTarget):
prefix = ''
# Import library is called foo.dll.lib
self.import_filename = f'{self.name}.dll.lib'
create_debug_file = True
# Debug files(.pdb) is only created with debug buildtype
create_debug_file = self.environment.coredata.get_option(OptionKey("debug"))
elif self.get_using_msvc():
# Shared library is of the form foo.dll
prefix = ''
# Import library is called foo.lib
self.import_filename = self.vs_import_filename
create_debug_file = True
# Debug files(.pdb) is only created with debug buildtype
create_debug_file = self.environment.coredata.get_option(OptionKey("debug"))
# Assume GCC-compatible naming
else:
# Shared library is of the form libfoo.dll

Loading…
Cancel
Save