Skip to content

fix(style): build the style module unstripped so macOS loads it (0.15.0) - #16

Merged
nodemode-ai merged 1 commit into
mainfrom
fix/macos-style-unstripped-0.15.0
Dec 1, 2026
Merged

nodemode-ai merged 1 commit into
mainfrom
fix/macos-style-unstripped-0.15.0

Conversation

@nodemode-ai

Copy link
Copy Markdown
Contributor

fix(style): build the style module unstripped so macOS loads it (0.15.0)

Summary

  • On the owner's Mac (macOS 26 or newer, rustc 1.97.1), ./build_app stopped right after building the citation style module: the engine's import failed with "mis-aligned LINKEDIT string pool". Cargo's release profile strips debug information by default, and on Apple targets rustc does that by rewriting the linked library with its bundled objcopy, which can leave the string pool 4 bytes off an 8-byte boundary; newer macOS refuses such a library (Stripping debuginfo on macOS produces misaligned dylibs rust-lang/rust#157750, fixed upstream in Rust 1.98).
  • native/formcite-style/Cargo.toml now sets strip = false for the release profile and its build-override, as FormVis's native module and every app's src-tauri already do. The CHANGELOG's 0.15.0 section lists the fix, so the 0.15.0 release notes carry it.

Commits

  • fix(style): build the style module unstripped so macOS loads it

Short hashes change when the commits are signed.

Version

No new version: the fix belongs to 0.15.0, which formai-build has not built yet. Merge this before running formai-build for FormCite.

Checks

The style module was rebuilt on Linux with the new profile (cargo build --release --locked). The files of this branch are identical to the 0.15.0 branch the full checks ran on (contract build, style gate 12 of 12, packaged app on Linux, independent check), apart from the order of this commit.
Not run: the build on macOS; the owner's next ./build_app is that check.

Merging

Merge with a merge commit so each commit and its signature stays. Do not squash.

On macOS 26 and newer, rustc 1.97's strip leaves the library's LINKEDIT string pool misaligned and dyld refuses it (mis-aligned LINKEDIT string pool). The release profile and its build-override now set strip = false, as every other Rust build in the family does. The CHANGELOG's 0.15.0 section lists the fix.
@nodemode-ai
nodemode-ai requested a review from gbarnai as a code owner December 1, 2026 22:32
@nodemode-ai
nodemode-ai merged commit 412e67c into main Dec 1, 2026
7 checks passed
@nodemode-ai
nodemode-ai deleted the fix/macos-style-unstripped-0.15.0 branch December 1, 2026 22:43
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.

1 participant