Explorar o código

Merge pull request #3749 from Calinou/intro-buildsystem-scons-clean

Document how to clean generated files using SCons
Rémi Verschelde %!s(int64=5) %!d(string=hai) anos
pai
achega
351893b13d
Modificáronse 1 ficheiros con 12 adicións e 0 borrados
  1. 12 0
      development/compiling/introduction_to_the_buildsystem.rst

+ 12 - 0
development/compiling/introduction_to_the_buildsystem.rst

@@ -222,6 +222,18 @@ features to include/disable.
 Check the output of ``scons --help`` for details about each option for
 the version you are willing to compile.
 
+Cleaning generated files
+------------------------
+
+Sometimes, you may encounter an error due to generated files being present. You
+can remove them by using ``scons --clean <options>``, where ``<options>`` is the
+list of build options you've used to build Godot previously.
+
+Alternatively, you can use ``git clean -fixd`` which will clean build artifacts
+for all platforms and configurations. Beware, as this will remove all untracked
+and ignored files in the repository. Don't run this command if you have
+uncommitted work!
+
 .. _doc_overriding_build_options:
 
 Overriding the build options