Skip to content

Commit a46ed50

Browse files
RafaelGSSaduh95
authored andcommitted
doc: clarify the need of compiler compatible with c++20
Very often someone appear in the #node-core slack channel asking for guidance on this compilation error PR-URL: #59297 Reviewed-By: Jacob Smith <jacob@frende.me> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
1 parent 946eab8 commit a46ed50

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

BUILDING.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -281,6 +281,11 @@ export CXX=g++-12
281281
make -j4
282282
```
283283

284+
> \[!IMPORTANT]
285+
> If you face a compilation error during this process such as
286+
> `error: no matching conversion for functional-style cast from 'unsigned int' to 'TypeIndex'`
287+
> Make sure to use a `g++` or `clang` version compatible with C++20.
288+
284289
We can speed up the builds by using [Ninja](https://ninja-build.org/). For more
285290
information, see
286291
[Building Node.js with Ninja](doc/contributing/building-node-with-ninja.md).

0 commit comments

Comments
 (0)