Skip to content

Make macOS' dump_syms_mac buildable and runnable on any system - #44

Open
illwieckz wants to merge 6 commits into
masterfrom
illwieckz/dump_syms_mac
Open

illwieckz wants to merge 6 commits into
masterfrom
illwieckz/dump_syms_mac

Conversation

@illwieckz

@illwieckz illwieckz commented Oct 12, 2026 •

Copy link
Copy Markdown
Member

Make macOS' dump_syms_mac buildable and runnable on any system.

  • configure: drop the now unused X86_HOST variable
    Just clean-up of the now unused X86_HOST variable in configure.ac after its removal in Makefile.am:
  • configure: detect macOS build machine
    Make possible to do macOS-specific branching in Makefile.am.
  • makefile: only use vendored macOS headers on non-macOS build systems
    Fix the build on macOS.
  • src/common/mac/byteswap: define byteswap symbols for MinGW
    Help fixing the build on MinGW.
  • src/common/mac/macho_walke: add compat/linux.h compatibility to define pread() on MinGW
    Finish fixing the build on MinGW.
  • makefile: enable the building of dump_syms_mac on every system
    Now every system can build and run dump_syms_mac, verified on the CI and locally.

Picked from:

@illwieckz
illwieckz force-pushed the illwieckz/dump_syms_mac branch 2 times, most recently from f3381f5 to 10df57e Compare October 21, 2026 11:37
Comment thread src/common/mac/byteswap.h Outdated
#ifndef COMMON_MAC_BYTESWAP_H_
#define COMMON_MAC_BYTESWAP_H_

#include "compat/linux.h"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems strange that this is in byteswap.h. This could be moved to where pread is used or at least have a comment like 'HACK: including this here because pread is used in 10 files'.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, good catch! It mistakenly ended there because some previous fixed landed there, I probably wrote it in the wrong editor that was already open. And later I named the test commit from the file it modified without questioning lol.

That header was meant to be in src/common/mac/macho_walker.cc. Now fixed.

@illwieckz
illwieckz force-pushed the illwieckz/dump_syms_mac branch from 10df57e to f96d8c1 Compare October 22, 2026 03:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants