summaryrefslogtreecommitdiff
path: root/mesonbuild/scripts
diff options
context:
space:
mode:
authorSteve Lhomme <robux4@ycbcr.xyz>2025-01-27 12:53:46 +0100
committerJussi Pakkanen <jpakkane@gmail.com>2025-01-30 01:04:28 +0200
commit248a7213f60344bf53b17d97559666be1fa9a9bb (patch)
treec7d418eb08770a46acee679239fb27400a06ca3d /mesonbuild/scripts
parent8493b768ebe4fc4f25f2bc983b663d8ee7db2535 (diff)
downloadmeson-248a7213f60344bf53b17d97559666be1fa9a9bb.tar.gz
symbolextractor: generate symbol files for cross-compiled Windows
Diffstat (limited to 'mesonbuild/scripts')
-rw-r--r--mesonbuild/scripts/symbolextractor.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/mesonbuild/scripts/symbolextractor.py b/mesonbuild/scripts/symbolextractor.py
index f4d75a48b..b0a07d906 100644
--- a/mesonbuild/scripts/symbolextractor.py
+++ b/mesonbuild/scripts/symbolextractor.py
@@ -269,7 +269,10 @@ def gen_symbols(libfilename: str, impfilename: str, outfilename: str, cross_host
# In case of cross builds just always relink. In theory we could
# determine the correct toolset, but we would need to use the correct
# `nm`, `readelf`, etc, from the cross info which requires refactoring.
- dummy_syms(outfilename)
+ if cross_host == 'windows' and os.path.isfile(impfilename):
+ windows_syms(impfilename, outfilename)
+ else:
+ dummy_syms(outfilename)
elif mesonlib.is_linux() or mesonlib.is_hurd():
gnu_syms(libfilename, outfilename)
elif mesonlib.is_osx():