diff --git a/docs/build-speed.md b/docs/build-speed.md index 11f3b46f666..69d74a10b4c 100644 --- a/docs/build-speed.md +++ b/docs/build-speed.md @@ -75,16 +75,16 @@ if an intermediate compilation result was originally stored. To install it, you can follow the [official installation instructions](https://github.com/ccache/ccache/blob/master/doc/INSTALL.md). -On Mac OS, we can install ccache with `brew install ccache`. +On macOS, we can install ccache with `brew install ccache`. Once installed you can configure it as follows to cache NDK compile results: ``` -ln -s ccache /usr/local/bin/gcc -ln -s ccache /usr/local/bin/g++ -ln -s ccache /usr/local/bin/cc -ln -s ccache /usr/local/bin/c++ -ln -s ccache /usr/local/bin/clang -ln -s ccache /usr/local/bin/clang++ +ln -s $(which ccache) /usr/local/bin/gcc +ln -s $(which ccache) /usr/local/bin/g++ +ln -s $(which ccache) /usr/local/bin/cc +ln -s $(which ccache) /usr/local/bin/c++ +ln -s $(which ccache) /usr/local/bin/clang +ln -s $(which ccache) /usr/local/bin/clang++ ``` This will create symbolic links to `ccache` inside the `/usr/local/bin/` which are called `gcc`, `g++`, and so on. diff --git a/website/versioned_docs/version-0.68/build-speed.md b/website/versioned_docs/version-0.68/build-speed.md index 94a1a7a8ce0..5b792eeb6c1 100644 --- a/website/versioned_docs/version-0.68/build-speed.md +++ b/website/versioned_docs/version-0.68/build-speed.md @@ -76,16 +76,16 @@ if an intermediate compilation result was originally stored. To install it, you can follow the [official installation instructions](https://github.com/ccache/ccache/blob/master/doc/INSTALL.md). -On Mac OS, we can install ccache with `brew install ccache`. +On macOS, we can install ccache with `brew install ccache`. Once installed you can configure it as follows to cache NDK compile results: ``` -ln -s ccache /usr/local/bin/gcc -ln -s ccache /usr/local/bin/g++ -ln -s ccache /usr/local/bin/cc -ln -s ccache /usr/local/bin/c++ -ln -s ccache /usr/local/bin/clang -ln -s ccache /usr/local/bin/clang++ +ln -s $(which ccache) /usr/local/bin/gcc +ln -s $(which ccache) /usr/local/bin/g++ +ln -s $(which ccache) /usr/local/bin/cc +ln -s $(which ccache) /usr/local/bin/c++ +ln -s $(which ccache) /usr/local/bin/clang +ln -s $(which ccache) /usr/local/bin/clang++ ``` This will create symbolic links to `ccache` inside the `/usr/local/bin/` which are called `gcc`, `g++`, and so on. diff --git a/website/versioned_docs/version-0.69/build-speed.md b/website/versioned_docs/version-0.69/build-speed.md index 7cb71e375ab..c4d926baa05 100644 --- a/website/versioned_docs/version-0.69/build-speed.md +++ b/website/versioned_docs/version-0.69/build-speed.md @@ -76,16 +76,16 @@ if an intermediate compilation result was originally stored. To install it, you can follow the [official installation instructions](https://github.com/ccache/ccache/blob/master/doc/INSTALL.md). -On Mac OS, we can install ccache with `brew install ccache`. +On macOS, we can install ccache with `brew install ccache`. Once installed you can configure it as follows to cache NDK compile results: ``` -ln -s ccache /usr/local/bin/gcc -ln -s ccache /usr/local/bin/g++ -ln -s ccache /usr/local/bin/cc -ln -s ccache /usr/local/bin/c++ -ln -s ccache /usr/local/bin/clang -ln -s ccache /usr/local/bin/clang++ +ln -s $(which ccache) /usr/local/bin/gcc +ln -s $(which ccache) /usr/local/bin/g++ +ln -s $(which ccache) /usr/local/bin/cc +ln -s $(which ccache) /usr/local/bin/c++ +ln -s $(which ccache) /usr/local/bin/clang +ln -s $(which ccache) /usr/local/bin/clang++ ``` This will create symbolic links to `ccache` inside the `/usr/local/bin/` which are called `gcc`, `g++`, and so on. diff --git a/website/versioned_docs/version-0.70/build-speed.md b/website/versioned_docs/version-0.70/build-speed.md index 129423924d4..49965da3afa 100644 --- a/website/versioned_docs/version-0.70/build-speed.md +++ b/website/versioned_docs/version-0.70/build-speed.md @@ -75,16 +75,16 @@ if an intermediate compilation result was originally stored. To install it, you can follow the [official installation instructions](https://github.com/ccache/ccache/blob/master/doc/INSTALL.md). -On Mac OS, we can install ccache with `brew install ccache`. +On macOS, we can install ccache with `brew install ccache`. Once installed you can configure it as follows to cache NDK compile results: ``` -ln -s ccache /usr/local/bin/gcc -ln -s ccache /usr/local/bin/g++ -ln -s ccache /usr/local/bin/cc -ln -s ccache /usr/local/bin/c++ -ln -s ccache /usr/local/bin/clang -ln -s ccache /usr/local/bin/clang++ +ln -s $(which ccache) /usr/local/bin/gcc +ln -s $(which ccache) /usr/local/bin/g++ +ln -s $(which ccache) /usr/local/bin/cc +ln -s $(which ccache) /usr/local/bin/c++ +ln -s $(which ccache) /usr/local/bin/clang +ln -s $(which ccache) /usr/local/bin/clang++ ``` This will create symbolic links to `ccache` inside the `/usr/local/bin/` which are called `gcc`, `g++`, and so on.