From 66213823ea6509a8cb3c30ebacf5a9d1f90bffdd Mon Sep 17 00:00:00 2001 From: matejcik Date: Wed, 1 Nov 2023 12:34:33 +0100 Subject: [PATCH] build(core): SCons "go fast" button some pretty safe & reasonable defaults to speed up SCons: - look at timestamps to figure out whether a file has changed - but only if the timestamp is older than 10 secs (which should avoid any problems with 1s precision of mtime, as well as clock drifts etc) - implicit cache is something to do with parsing C files for dependencies see https://github.com/SCons/scons/wiki/GoFastButton --- core/SConstruct | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/SConstruct b/core/SConstruct index a043643134..d4c5aae455 100644 --- a/core/SConstruct +++ b/core/SConstruct @@ -1,4 +1,7 @@ # pylint: disable=E0602 +Decider('content-timestamp') +SetOption('max_drift', 10) +SetOption('implicit_cache', 1) SConscript('SConscript.boardloader', variant_dir='build/boardloader', duplicate=False) SConscript('SConscript.bootloader', variant_dir='build/bootloader', duplicate=False)