diff options
author | Thomas Li <47963215+lithomas1@users.noreply.github.com> | 2022-09-09 14:27:06 -0400 |
---|---|---|
committer | Eli Schwartz <eschwartz93@gmail.com> | 2022-10-19 11:32:25 -0400 |
commit | 2761131ff94489842da3988792c4c2b0d25a850c (patch) | |
tree | c6faa603624918b711b64f529da1e8197f91515c | |
parent | 7912901accaee714fc86febdc72f4347b9397759 (diff) | |
download | meson-2761131ff94489842da3988792c4c2b0d25a850c.zip meson-2761131ff94489842da3988792c4c2b0d25a850c.tar.gz meson-2761131ff94489842da3988792c4c2b0d25a850c.tar.bz2 |
BUG: Don't add debug files as targets when not building in debug mode
-rw-r--r-- | mesonbuild/build.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/mesonbuild/build.py b/mesonbuild/build.py index bf87071..1c8013c 100644 --- a/mesonbuild/build.py +++ b/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 |