# MachO: emit absolute path in N_OSO stabs · gitcafe/zig

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

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

Visibility: public

Requested revision: 45143c6f04c84e8a519aa24e4d79e9385b5d5e2f

Requested commit: 45143c6f04c84e8a519aa24e4d79e9385b5d5e2f

Commit: 45143c6f04c84e8a519aa24e4d79e9385b5d5e2f

Tree: b36a125db7a5861a14f61154b6200535548eee2a

Author: mlugg

Committer: Matthew Lugg

## Message

```
MachO: emit absolute path in N_OSO stabs

This path being relative is unconventional and causes issues for us
if the output artifact is ever used from a different cwd than the one it
was built from. The behavior implemented by this commit of always
emitting these paths as absolute was actually the behavior in 0.14.x,
but it regressed in 0.15.1 due to internal reworks to path handling
which led to relative paths being more common in the compiler internals.

Resolves: #25433

```

## Parents

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

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