Skip to content

Masa v1.0.0

Choose a tag to compare

@ClausValcaTD ClausValcaTD released this 16 Nov 16:47
· 15 commits to main since this release

Masa v1.0.0

Cross-platform Mach-O build & Darwin environment.

Masa is a cross-compilation wrapper and Darwin environment shim: it builds
macOS Mach-O binaries on a non-macOS host, without Xcode, by driving clang
and answering the platform queries that macOS build systems make. Licensed
under the GNU General Public License v3.0 or later.

Highlights

  • masa cc — clang wrapper that injects the target triple, the SDK sysroot
    and ld64.lld, producing real Mach-O MH_EXECUTE output.
  • masa sys — shims uname, sw_vers, xcode-select and xcrun so build
    systems detect Darwin.
  • masa exec / masa shell — run commands (and an interactive shell) inside
    a shimmed environment with the toolchain shims first on PATH.
  • masa sdk — reports SDK readiness and writes a clean-room stub SDK (TAPI
    v4 .tbd files + crt1.o + standard headers) that is enough to link.
  • masa xcode — a clean-room project.pbxproj parser and builder: turns a
    checked-in .xcodeproj into a real Mach-O executable, with --bundle laying
    it out as a <Product>.app.
  • masa brew — a Ruby-free Homebrew formula linter and builder that lays out
    a Cellar, with correct system semantics (single-string commands run through
    /bin/sh -c, multi-argument commands run directly).
  • masa swift — Swift toolchain support: the swiftc wrapper plus
    masa swift info / masa swift build for Package.swift projects.
  • masa pack --dmg / --ipa — a pure-C11 packager that turns a .app bundle
    into a UDIF .dmg (with a koly trailer and blkx block table) or an .ipa
    (a ZIP with the app under Payload/<App>.app/), with no external tools.
  • masa doctor — a local macOS cross-build readiness report.
  • masa-term — an optional standalone GUI terminal (SDL2 + SDL2_ttf +
    libvterm) over a real PTY.
  • codesign shim — answers ad-hoc codesign -s - and codesign --verify
    so signing steps in build scripts succeed.

Platforms

  • Linux (native build), Windows (x86_64-w64-mingw32), and Android
    (NDK clang) are supported; make dist packages the build reproducibly.

Verification

  • make test: 92 tests, 0 failed, under -std=c11 -Wall -Wextra -Werror -fsanitize=address (zero warnings, zero leaks).
  • SDL_VIDEODRIVER=dummy make test-gui: 20 tests, 0 failed.
  • make dist + sha256sum -c SHA256SUMS: all artifacts verify.

Assets

  • masa-1.0.0-linux-x86_64.tar.gz / .zip
  • masa-1.0.0-windows-x86_64.tar.gz / .zip
  • SHA256SUMS

This release description was generated by an AI agent (OpenHands) on behalf of
the maintainer.