aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/envconfig.py
diff options
context:
space:
mode:
authorAditya Kamath <118170220+KamathForAIX@users.noreply.github.com>2023-06-28 00:32:32 +0530
committerGitHub <noreply@github.com>2023-06-27 22:02:32 +0300
commit8946bc05f7f9cdd16dce3613c481a66f7835fc7f (patch)
treeca5b43bcab5a14d45f317cae2a15fd8426aec60f /mesonbuild/envconfig.py
parent78b8d447eea08445c9708bc0e3ba3c886717f6cd (diff)
downloadmeson-8946bc05f7f9cdd16dce3613c481a66f7835fc7f.zip
meson-8946bc05f7f9cdd16dce3613c481a66f7835fc7f.tar.gz
meson-8946bc05f7f9cdd16dce3613c481a66f7835fc7f.tar.bz2
Archive shared library in AIX (#11850)
* Archive shared library in AIX This code change to ensure we archive shared libraries in AIX. The things we do are: Archive shared library Install archived shared library Build all must build the archived shared library blibpath must have the archived shared library dependency. * Archive shared library in AIX. Made changes as per the review comments given in the first PR request. They are:- Use self.environment.machines[t.for_machine].is_aix() Remove trial spaces Use of val instead of internal Changed comments wherever requested * Space after octothorpe * Fixed failed test case causing build break during install section * Moved AIX specific code to AIXDynamicLinker from backend * Fix indentation, trailing spaces, add type annotations and Linux/macOS build break * Remove some more trailing space issues * Fixed the wrong return type in linkers
Diffstat (limited to 'mesonbuild/envconfig.py')
-rw-r--r--mesonbuild/envconfig.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/mesonbuild/envconfig.py b/mesonbuild/envconfig.py
index 1bf6ab9..24c1855 100644
--- a/mesonbuild/envconfig.py
+++ b/mesonbuild/envconfig.py
@@ -357,6 +357,12 @@ class MachineInfo(HoldableObject):
"""
return self.system == 'gnu'
+ def is_aix(self) -> bool:
+ """
+ Machine is aix?
+ """
+ return self.system == 'aix'
+
def is_irix(self) -> bool:
"""Machine is IRIX?"""
return self.system.startswith('irix')