From 43de2c0c69dbf8d076eff0a7dea72f1e9e5ddb05 Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Thu, 21 Oct 2021 10:06:49 -0700 Subject: [PATCH] doc: fix environment variable settings for ccache macOS requires `cc` and `c++` rather than `gcc` and `g++`. Closes: https://github.com/nodejs/node/issues/40542 --- BUILDING.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/BUILDING.md b/BUILDING.md index dc159c8b539901..97b97bab23dca3 100644 --- a/BUILDING.md +++ b/BUILDING.md @@ -523,8 +523,8 @@ installing `ccache` can help to greatly reduce build times. Set up with: $ sudo apt install ccache # for Debian/Ubuntu, included in most Linux distros $ ccache -o cache_dir= $ ccache -o max_size=5.0G -$ export CC="ccache gcc" # add to your .profile -$ export CXX="ccache g++" # add to your .profile +$ export CC="ccache gcc" # add to your .profile, use cc (not gcc) on macOS +$ export CXX="ccache g++" # add to your .profile, use c++ (not g++) on macOS ``` This will allow for near-instantaneous rebuilds even when switching branches.