# Expose an option for producing 64-bit DWARF format · gitcafe/zig

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

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

Visibility: public

Requested revision: d026202a26e56e7e2ea20ca49509fdcf8b937020

Requested commit: d026202a26e56e7e2ea20ca49509fdcf8b937020

Commit: d026202a26e56e7e2ea20ca49509fdcf8b937020

Tree: 12f872577f617312e9c6e68e0d53a29f1986d06e

Author: David Gonzalez Martin

Committer: Andrew Kelley

## Message

```
Expose an option for producing 64-bit DWARF format

This commit enables producing 64-bit DWARF format for Zig executables
that are produced through the LLVM backend. This is achieved by exposing
both command-line flags and CompileStep flags. The production of the
64-bit format only affects binaries that use the DWARF format and it is
disabled on MacOS due to it being problematic. This commit, despite
generating the interface for the Zig user to be able to tell the compile
which format is wanted, is just implemented for the LLVM backend, so
clang and the self-hosted backends will need this to be implemented in a
future commit.

This is an effort to work around #7962, since the emission of the 64-bit
format automatically produces 64-bit relocations. Further investigation
will be needed to make DWARF 32-bit format to emit bigger relocations
when needed and not make the linker angry.

```

## Parents

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

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