Build: Use ccache if it's available (#1315)

This commit is contained in:
Alexander F. Rødseth 2020-02-27 11:44:29 +01:00 committed by GitHub
parent 4997dcde06
commit cdb58cdfd2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
Notes: sideshowbarker 2024-07-19 09:02:21 +09:00
2 changed files with 4 additions and 2 deletions

View file

@ -54,8 +54,6 @@ Once you've built the toolchain, go into the `Kernel/` directory, then run
**./makeall.sh**, and if nothing breaks too much, take it for a spin by using
**./run**.
You can vastly reduce the build time of successive rebuilds of Serenity by installing `ccache` and `export`ing ```PRE_CXX=ccache```
Bare curious users may even consider sourcing suitable hardware to [install Serenity on a physical PC.](https://github.com/SerenityOS/serenity/blob/master/INSTALL.md)
Later on, when you `git pull` to get the latest changes, there's no need to rebuild the toolchain. You can simply rerun **./makeall.sh** in the `Kernel/` directory and you'll be good to **./run** again.

View file

@ -15,6 +15,10 @@ SUBDIRS += \
Games \
Demos
ifneq (, $(shell which ccache))
export PRE_CXX=ccache
endif
include Makefile.subdir
all: subdirs