From 7b53c26501eb65a148cff91265fd3e4cfc581b2a Mon Sep 17 00:00:00 2001 From: Eli Schwartz Date: Tue, 19 Oct 2021 19:17:01 -0400 Subject: [PATCH] remove dead code that is immediately overridden In commit d932cd9fb48e8fecb167641c3d6bee8a68831c6e, we migrated to meson's own static linker definition, and the old code that hardcoded two of the possible exelists should have been removed in the process. --- unittests/allplatformstests.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/unittests/allplatformstests.py b/unittests/allplatformstests.py index 878b8c849..5a2a4c33d 100644 --- a/unittests/allplatformstests.py +++ b/unittests/allplatformstests.py @@ -1441,10 +1441,6 @@ class AllPlatformTests(BasePlatformTests): def build_static_lib(self, compiler, linker, source, objectfile, outfile, extra_args=None): if extra_args is None: extra_args = [] - if compiler.get_argument_syntax() == 'msvc': - link_cmd = ['lib', '/NOLOGO', '/OUT:' + outfile, objectfile] - else: - link_cmd = ['ar', 'csr', outfile, objectfile] link_cmd = linker.get_exelist() link_cmd += linker.get_always_args() link_cmd += linker.get_std_link_args(False)