# stage1: add cmake flag for enabling logging · gitcafe/zig

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

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

Visibility: public

Requested revision: ba8ac46e1f75212c823568a2e121097bd0bafc5b

Requested commit: ba8ac46e1f75212c823568a2e121097bd0bafc5b

Commit: ba8ac46e1f75212c823568a2e121097bd0bafc5b

Tree: ecbe81f2a06c725b90b972db20b3b4300e603cce

Author: Jakub Konka

Committer: Andrew Kelley

## Message

````
stage1: add cmake flag for enabling logging

Now that we ship our own linker for MachO by default in both stage1
and stage2, we need a way to enable logs for verbose debugging.
This commit adds `ZIG_ENABLE_LOGGING` cmake option which is equivalent
to stage2's `-Dlog` flag.

To enable it when building stage1 with cmake, add:

```
cmake .. -DZIG_ENABLE_LOGGING=on
```

````

## Parents

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

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