aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/scripts
diff options
context:
space:
mode:
authorPino Toscano <toscano.pino@tiscali.it>2020-04-09 12:00:21 +0200
committerDylan Baker <dylan@pnwbakers.com>2020-04-10 11:29:35 -0700
commita2b8ed14467f080d33c4ed766089de572dde1075 (patch)
tree89da3771bd79fe4696f5fa726be925d991a86c3f /mesonbuild/scripts
parenta441836773fd4e2e0438b434145c83d8838c261d (diff)
downloadmeson-a2b8ed14467f080d33c4ed766089de572dde1075.zip
meson-a2b8ed14467f080d33c4ed766089de572dde1075.tar.gz
meson-a2b8ed14467f080d33c4ed766089de572dde1075.tar.bz2
symbolextractor: rename linux_syms to gnu_syms
It is not specific to Linux but works with the GNU toolchain, so give it a better name. No functional changes.
Diffstat (limited to 'mesonbuild/scripts')
-rw-r--r--mesonbuild/scripts/symbolextractor.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/mesonbuild/scripts/symbolextractor.py b/mesonbuild/scripts/symbolextractor.py
index 65b2189..876e038 100644
--- a/mesonbuild/scripts/symbolextractor.py
+++ b/mesonbuild/scripts/symbolextractor.py
@@ -94,7 +94,7 @@ def call_tool_nowarn(tool: T.List[str], **kwargs) -> T.Tuple[str, str]:
return None, e
return output, None
-def linux_syms(libfilename: str, outfilename: str):
+def gnu_syms(libfilename: str, outfilename: str):
# Get the name of the library
output = call_tool('readelf', ['-d', libfilename])
if not output:
@@ -231,7 +231,7 @@ def gen_symbols(libfilename: str, impfilename: str, outfilename: str, cross_host
# `nm`, `readelf`, etc, from the cross info which requires refactoring.
dummy_syms(outfilename)
elif mesonlib.is_linux():
- linux_syms(libfilename, outfilename)
+ gnu_syms(libfilename, outfilename)
elif mesonlib.is_osx():
osx_syms(libfilename, outfilename)
elif mesonlib.is_windows():