# zig c\+\+: fix compilation that includes any c\+\+ std library file · gitcafe/zig

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

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

Visibility: public

Requested revision: 24215df8c56ba64e624487f914513212e3e747e9

Requested commit: 24215df8c56ba64e624487f914513212e3e747e9

Commit: 24215df8c56ba64e624487f914513212e3e747e9

Tree: 1c8db80cdda1e44bd89074e03d9c260ffd3e240a

Author: Timon Kruiper

Committer: Andrew Kelley

## Message

```
zig c++: fix compilation that includes any c++ std library file

LLVM 12 included a patch that changed the way availability annotations
are specified. We now have to define the _LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS
flag to make sure that we tell the c++ headers that we don't use
visibility annotations.

Related LLVM patch: D90843

```

## Parents

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

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