Module::Build::Platform::MacOS(3pm) User Contributed Perl Documentation Module::Build::Platform::MacOS(3pm)

# [NAME](#NAME)

Module::Build::Platform::MacOS - Builder class for MacOS platforms

# [DESCRIPTION](#DESCRIPTION)

The sole purpose of this module is to inherit from "Module::Build::Base" and override a few methods. Please see Module::Build for the docs.

## [Overridden Methods](#Overridden_Methods)

[**new()**](#new%28%29)

MacPerl doesn't define $Config{sitelib} or $Config{sitearch} for some reason, but $Config{installsitelib} and $Config{installsitearch} are there. So we copy the install variables to the other location

[**make\_executable()**](#make_executable%28%29)

On MacOS we set the file type and creator to MacPerl so it will run with a double-click.

[**dispatch()**](#dispatch%28%29)

Because there's no easy way to say "./Build test" on MacOS, if dispatch is called with no arguments and no @ARGV a dialog box will pop up asking what action to take and any extra arguments.

Default action is "test".

[**ACTION\_realclean()**](#ACTION_realclean%28%29)

Need to unlock the Build program before deleting.

# [AUTHOR](#AUTHOR)

Michael G Schwern &lt;schwern@pobox.com&gt;

# [SEE ALSO](#SEE_ALSO)

[**perl**(1)](/man/os/perl-module-build/perl.1), [**Module::Build**(3)](/man/os/perl-module-build/Module::Build.3), [**ExtUtils::MakeMaker**(3)](/man/os/perl-module-build/ExtUtils::MakeMaker.3)

2026-07-20 perl v5.44.0

---

Document: Module::Build::Platform::MacOS(3pm) from perl-module-build 0.4234-r10 (Chainguard OS)
Source: https://github.com/Perl-Toolchain-Gang/Module-Build
