PyDoc: disable ASAN exit code for doc building
authorCampbell Barton <ideasman42@gmail.com>
Thu, 13 Sep 2018 05:37:30 +0000 (15:37 +1000)
committerCampbell Barton <ideasman42@gmail.com>
Thu, 13 Sep 2018 05:37:30 +0000 (15:37 +1000)
Prevented docs from building on any minor issue when ASAN was enabled.

GNUmakefile
doc/python_api/sphinx_doc_gen.sh

index 26d931a..13f8a55 100644 (file)
@@ -455,6 +455,7 @@ update: .FORCE
 
 # Simple version of ./doc/python_api/sphinx_doc_gen.sh with no PDF generation.
 doc_py: .FORCE
+       ASAN_OPTIONS=halt_on_error=0 \
        $(BLENDER_BIN) --background -noaudio --factory-startup \
                --python doc/python_api/sphinx_doc_gen.py
        cd doc/python_api ; sphinx-build -b html sphinx-in sphinx-out
index d7420f9..eba9e1c 100755 (executable)
@@ -58,7 +58,10 @@ SPHINX_WORKDIR="$(mktemp --directory --suffix=.sphinx)"
 # Generate reStructuredText (blender/python only)
 
 if $DO_EXE_BLENDER ; then
-       # don't delete existing docs, now partial updates are used for quick builds.
+       # Don't delete existing docs, now partial updates are used for quick builds.
+       #
+       # Disable ASAN error halt since it results in nonzero exit code on any minor issue.
+       ASAN_OPTIONS=halt_on_error=0 \
        $BLENDER_BIN \
                --background \
                -noaudio \