@@ -210,7 +210,7 @@ opts.Add(
210210 )
211211)
212212opts .Add (BoolVariable ("tests" , "Build the unit tests" , False ))
213- opts .Add (BoolVariable ("fast_unsafe" , "Enable unsafe options for faster rebuilds " , False ))
213+ opts .Add (BoolVariable ("fast_unsafe" , "Enable unsafe options for faster incremental builds " , False ))
214214opts .Add (BoolVariable ("ninja" , "Use the ninja backend for faster rebuilds" , False ))
215215opts .Add (BoolVariable ("ninja_auto_run" , "Run ninja automatically after generating the ninja file" , True ))
216216opts .Add ("ninja_file" , "Path to the generated ninja file" , "build.ninja" )
@@ -529,10 +529,10 @@ env.Decider("MD5-timestamp")
529529
530530# SCons speed optimization controlled by the `fast_unsafe` option, which provide
531531# more than 10 s speed up for incremental rebuilds.
532- # Unsafe as they reduce the certainty of rebuilding all changed files, so it's
533- # enabled by default for `debug` builds, and can be overridden from command line .
532+ # Unsafe as they reduce the certainty of rebuilding all changed files.
533+ # If you use it and run into corrupted incremental builds, try to turn it off .
534534# Ref: https://github.com/SCons/scons/wiki/GoFastButton
535- if methods . get_cmdline_bool ( "fast_unsafe" , env . dev_build ) :
535+ if env [ "fast_unsafe" ] :
536536 env .SetOption ("implicit_cache" , 1 )
537537 env .SetOption ("max_drift" , 60 )
538538
0 commit comments