# stage2: add tweak to please Apple re stack alignment · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/7c831cc2663ba4e0ce2cf29ca4a3bd9a4a074f5c)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 7c831cc2663ba4e0ce2cf29ca4a3bd9a4a074f5c

Requested commit: 7c831cc2663ba4e0ce2cf29ca4a3bd9a4a074f5c

Commit: 7c831cc2663ba4e0ce2cf29ca4a3bd9a4a074f5c

Tree: 02bea370f0f6220f0ab02c04935a2208a2b3d97f

Author: Jakub Konka

Committer: Jakub Konka

## Message

```
stage2: add tweak to please Apple re stack alignment

This is more like a temp hack than anything else - I think the
mechanism we use for adjusting the stack when pushing args onto
the stack could/should be reused - i.e., we should just calculate
the stack alignment before each call and then reset the `rsp`
rather than relying on the current hack in `gen()` logic.

```

## Parents

- [df6c0067b26ca1b6798612631b26b167e9fe287a](https://git.cafe/gitcafe/zig/commit/df6c0067b26ca1b6798612631b26b167e9fe287a?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/7c831cc2663ba4e0ce2cf29ca4a3bd9a4a074f5c?format=markdown)
