# libcxx: fix building when \-fsingle-threaded · gitcafe/zig

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

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

Visibility: public

Requested revision: 2cd536d7e8ae9c095eace969561a5e23c332fdad

Requested commit: 2cd536d7e8ae9c095eace969561a5e23c332fdad

Commit: 2cd536d7e8ae9c095eace969561a5e23c332fdad

Tree: b1fee457a9f593c1230ffd8bfc2123c79d99794b

Author: Michael Dusan

Committer: Andrew Kelley

## Message

```
libcxx: fix building when -fsingle-threaded

* Skip building libcxx mt-only source files when single-threaded.
* This change is required for llvm18 libcxx.
* Add standalone test to link a trivial:
    - mt-executable with libcxx
    - st-executable with libcxx

```

## Parents

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

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