diff options
author | Dylan Baker <dylan@pnwbakers.com> | 2020-02-19 11:02:12 -0800 |
---|---|---|
committer | Nirbheek Chauhan <nirbheek.chauhan@gmail.com> | 2020-02-21 05:15:25 +0530 |
commit | 48f3e72493c28d7721c6f25e644638bad5c63835 (patch) | |
tree | 7a545c34ee9a9f687b320d09c88a86e38cfaa819 /run_unittests.py | |
parent | 9e7cca1472891582d6369c8f11f46163f7265168 (diff) | |
download | meson-48f3e72493c28d7721c6f25e644638bad5c63835.zip meson-48f3e72493c28d7721c6f25e644638bad5c63835.tar.gz meson-48f3e72493c28d7721c6f25e644638bad5c63835.tar.bz2 |
linkers: Update the linker names to be more consistent
This makes two basic changes, 1 it moves the name of the linker into the
linker class, this should reduce the number of errors and typos, and
ensure that a linker always has one name. This then renames the linkers
to have more consistent names.
Posix/gnu linkers are called ld.<name>: ld.gold, ld.lld, ld.solaris.
Apple linkers are renamed ld64.
Diffstat (limited to 'run_unittests.py')
-rwxr-xr-x | run_unittests.py | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/run_unittests.py b/run_unittests.py index 69de23a..2874a29 100755 --- a/run_unittests.py +++ b/run_unittests.py @@ -6061,30 +6061,30 @@ c = ['{0}'] self.assertEqual(comp.linker.id, expected) def test_ld_environment_variable_bfd(self): - self._check_ld('ld.bfd', 'bfd', 'c', 'GNU ld.bfd') + self._check_ld('ld.bfd', 'bfd', 'c', 'ld.bfd') def test_ld_environment_variable_gold(self): - self._check_ld('ld.gold', 'gold', 'c', 'GNU ld.gold') + self._check_ld('ld.gold', 'gold', 'c', 'ld.gold') def test_ld_environment_variable_lld(self): - self._check_ld('ld.lld', 'lld', 'c', 'lld') + self._check_ld('ld.lld', 'lld', 'c', 'ld.lld') @skipIfNoExecutable('rustc') def test_ld_environment_variable_rust(self): - self._check_ld('ld.gold', 'gold', 'rust', 'GNU ld.gold') + self._check_ld('ld.gold', 'gold', 'rust', 'ld.gold') def test_ld_environment_variable_cpp(self): - self._check_ld('ld.gold', 'gold', 'cpp', 'GNU ld.gold') + self._check_ld('ld.gold', 'gold', 'cpp', 'ld.gold') def test_ld_environment_variable_objc(self): - self._check_ld('ld.gold', 'gold', 'objc', 'GNU ld.gold') + self._check_ld('ld.gold', 'gold', 'objc', 'ld.gold') def test_ld_environment_variable_objcpp(self): - self._check_ld('ld.gold', 'gold', 'objcpp', 'GNU ld.gold') + self._check_ld('ld.gold', 'gold', 'objcpp', 'ld.gold') @skipIfNoExecutable('gfortran') def test_ld_environment_variable_fortran(self): - self._check_ld('ld.gold', 'gold', 'fortran', 'GNU ld.gold') + self._check_ld('ld.gold', 'gold', 'fortran', 'ld.gold') def compute_sha256(self, filename): with open(filename, 'rb') as f: |