aboutsummaryrefslogtreecommitdiff
path: root/run_unittests.py
diff options
context:
space:
mode:
authorNirbheek Chauhan <nirbheek@centricular.com>2020-02-21 05:09:05 +0530
committerNirbheek Chauhan <nirbheek@centricular.com>2020-02-21 05:45:34 +0530
commit36b4dec26270e8908307e80fcc174004bc69a181 (patch)
treeec76ce18bdad8cc8149a14b436a56a2506ae3a84 /run_unittests.py
parent090eaac91881b3cff50369fa0b1d53dcd5167fe6 (diff)
downloadmeson-36b4dec26270e8908307e80fcc174004bc69a181.zip
meson-36b4dec26270e8908307e80fcc174004bc69a181.tar.gz
meson-36b4dec26270e8908307e80fcc174004bc69a181.tar.bz2
macOS: Remove more unused linkerlike args
`-L` and `-headerpad_max_install_names` are both linker arguments that are commonly passed in CFLAGS too. Closes https://github.com/mesonbuild/meson/issues/6294
Diffstat (limited to 'run_unittests.py')
-rwxr-xr-xrun_unittests.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/run_unittests.py b/run_unittests.py
index 5bded17..56618df 100755
--- a/run_unittests.py
+++ b/run_unittests.py
@@ -4896,6 +4896,11 @@ class DarwinTests(BasePlatformTests):
self.build()
self.install()
+ def test_removing_unused_linker_args(self):
+ testdir = os.path.join(self.common_test_dir, '108 has arg')
+ env = {'CFLAGS': '-L/tmp -L /var/tmp -headerpad_max_install_names -Wl,-export_dynamic'}
+ self.init(testdir, override_envvars=env)
+
@unittest.skipUnless(not is_windows(), "requires something Unix-like")
class LinuxlikeTests(BasePlatformTests):