From d646198ab0bfe76f4d938ed60d9e1dcaccec5248 Mon Sep 17 00:00:00 2001 From: Andres Diaz Date: Thu, 8 May 2025 16:44:54 -0500 Subject: [PATCH] doc: spliting building steps for unix and macos Currently, there is an error when executing export: CXX=g++-12 on macOS. Without it, it compiles fine. So, we split the step into two caterogies: steps for unix and steps for macOS Fixes: https://github.com/nodejs/node/issues/58219 Restoring previous BUILDING.md new doc proposal for g++-12 export command removing non related line change restoring end of file restoring comment proposal --- BUILDING.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/BUILDING.md b/BUILDING.md index 78f83873cc1f5b..04baf684d8f673 100644 --- a/BUILDING.md +++ b/BUILDING.md @@ -246,6 +246,12 @@ Installation via Linux package manager can be achieved with: FreeBSD and OpenBSD users may also need to install `libexecinfo`. +If you're getting a warning related to g++ older version, you can use + +```bash +export CXX=g++-12 +``` + #### macOS prerequisites * Xcode Command Line Tools >= 13 for macOS @@ -266,7 +272,6 @@ fail. To build Node.js: ```bash -export CXX=g++-12 ./configure make -j4 ```