Fix incremental debug builds in VS

This commit is contained in:
GustavoLCR 2020-05-03 20:21:20 -03:00 committed by GitHub
parent 9a6e79dc68
commit 27bbf37cf0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

@ -1192,7 +1192,8 @@ class Vs2010Backend(backends.Backend):
# /nologo
ET.SubElement(link, 'SuppressStartupBanner').text = 'true'
# /release
ET.SubElement(link, 'SetChecksum').text = 'true'
if not self.environment.coredata.get_builtin_option('debug'):
ET.SubElement(link, 'SetChecksum').text = 'true'
meson_file_group = ET.SubElement(root, 'ItemGroup')
ET.SubElement(meson_file_group, 'None', Include=os.path.join(proj_to_src_dir, build_filename))

View File

@ -5175,7 +5175,7 @@ class WindowsTests(BasePlatformTests):
raise
raise unittest.SkipTest('pefile module not found')
testdir = os.path.join(self.common_test_dir, '6 linkshared')
self.init(testdir)
self.init(testdir, extra_args=['--buildtype=release'])
self.build()
# Test that binaries have a non-zero checksum
env = get_fake_env()