Note: This is an archived version of the Blender Developer Wiki (archived 2024). The current developer documentation is available on developer.blender.org/docs.
User:Zachman/Setup
Development Setup
CMake
- Everything from the Developer config
- Ninja (faster than Make and less output)
CMAKE_CXX_COMPILER_LAUNCHER
,CMAKE_C_COMPILER_LAUNCHER
:ccache
CMAKE_CXX_FLAGS
,CMAKE_C_FLAGS
:-fdiagnostics-color=always
Color ninja outputWITH_LINKER_LLD
(faster than WITH_LINKER_GOLD)
Environment Variables
NINJA_STATUS="[%f/%t %p %e]"
Set the ninja status line to display targets, percent completion, and elapsed time.ASAN_OPTIONS=abort_on_error=1
Cause GDB to stop when ASAN finds an error.- LSAN_OPTIONS="print_suppressions=false:suppressions=$HOME/path/to/suppressions.txt"
- LSAN Suppressions list.
- Also
leak:libpulse*
,leak:libxcb*
,leak:iris_dri*