5
edits
(JamesT's OSG fork now at GitLab is needed for a good UX starting from FG 2024.1. Also and directly related: OSG has been added to the default component list of download_and_compile.sh on 2024-09-25 (FGMeta commit 9faf2cfb5a3).) |
(→Options: Ccache) |
||
Line 785: | Line 785: | ||
This command will only rebuild modified files and reinstall FlightGear. Note that depending on the kind of changes you made, reconfiguring and thus dropping the <code>-rn</code> option may be necessary, though (this is the case in particular if you added or removed C++ files). | This command will only rebuild modified files and reinstall FlightGear. Note that depending on the kind of changes you made, reconfiguring and thus dropping the <code>-rn</code> option may be necessary, though (this is the case in particular if you added or removed C++ files). | ||
=== ccache === | |||
{{wikipedia|Ccache|ccache}} is a compiler cache that can help speed up subsequent re-compilations. Even if <code>ccache</code> is installed and in the <code>$PATH</code>, the <code>download_and_compile.sh</code> won't use it by default. To use it, install it, such as via <code>apt install ccache</code>. Then enable it when building with <code>download_and_compile.sh</code> by one of the below methods. | |||
Export in environment: | |||
export CMAKE_CXX_COMPILER_LAUNCHER=ccache | |||
Or when running <code>download_and_compile.sh</code> add this option: | |||
--cmake-arg=ALL="CMAKE_CXX_COMPILER_LAUNCHER=ccache" | |||
== Optimus technology == | == Optimus technology == |
edits