Skip to content

Commit d140c37

Browse files
committed
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 <[email protected]> Reviewed-By: Luigi Pinca <[email protected]>
1 parent e91b54d commit d140c37

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
@@ -272,6 +272,11 @@ export CXX=g++-12
272272
make -j4
273273
```
274274

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

0 commit comments

Comments
 (0)