# macho: create dSym bundle next to final artefact · gitcafe/zig

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

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

Visibility: public

Requested revision: bd99a87dc224b7d84e764fc2a8a8f4e3068078b3

Requested commit: bd99a87dc224b7d84e764fc2a8a8f4e3068078b3

Commit: bd99a87dc224b7d84e764fc2a8a8f4e3068078b3

Tree: 2500fcf9f2e04b1ab192814bfed4b7884a0b42a6

Author: Jakub Konka

Committer: Jakub Konka

## Message

```
macho: create dSym bundle next to final artefact

macOS requires the debug symbols to either be part of the intermediate
object file `whatever.o` or a companion `whatever.dSym` bundle. The
former case seems ill-suited for our needs since it subscribes to
the old-fashioned compilation strategy using intermediate compilation
units; the latter is what we need however on macOS the debug symbols
unlike in Elf are not part of the final artefact; rather they sit
next to it in its own Mach-O file.

```

## Parents

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

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