Skip to content

Commit

Permalink
symbolextractor: generate symbol files for cross-compiled Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
robUx4 authored and jpakkane committed Jan 29, 2025
1 parent 8493b76 commit 248a721
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion mesonbuild/scripts/symbolextractor.py
Original file line number Diff line number Diff line change
Expand Up @@ -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():
Expand Down

0 comments on commit 248a721

Please sign in to comment.