Jelajahi Sumber

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

Document how to clean generated files using SCons
Rémi Verschelde 5 tahun lalu
induk
melakukan
351893b13d
1 mengubah file dengan 12 tambahan dan 0 penghapusan
  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