# build.zig: add support for using "zig c\+\+" as the bootstrap c\+\+ compiler · gitcafe/zig

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

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

Visibility: public

Requested revision: 69d6f2e1b821a5cc089534c59cb2e881c6d184b1

Requested commit: 69d6f2e1b821a5cc089534c59cb2e881c6d184b1

Commit: 69d6f2e1b821a5cc089534c59cb2e881c6d184b1

Tree: a76289981d0225ccaef2333a3193cab13ea97822

Author: Xavier Bouchoux

Committer: Xavier Bouchoux

## Message

```
build.zig: add support for using "zig c++" as the bootstrap c++ compiler

The build was previously failing with `error: unknown command: -print-file-name=libstdc++.a`
because the command invocation was
`zig -print-file-name=libstdc++.a`
instead of
`zig c++ -print-file-name=libstdc++.a`

note: .cxx_compiler_arg1 = "" instead of undefined to avoid breaking existing setups without requiring to run cmake again.

```

## Parents

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

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