Fix man-page generation when ASAN_OPTIONS included strict_init_order

The install target would fail when ASAN_OPTIONS was set for the
environment that launched the build.

Resolve by explicitly overriding these settings.
This commit is contained in:
Campbell Barton 2023-05-24 21:47:26 +10:00
parent d1dca2d15c
commit 60d97fb5fa
1 changed files with 4 additions and 1 deletions

View File

@ -31,7 +31,10 @@ def man_format(data: str) -> str:
def blender_extract_info(blender_bin: str) -> Dict[str, str]:
blender_env = {
"ASAN_OPTIONS": "exitcode=0:" + os.environ.get("ASAN_OPTIONS", ""),
"ASAN_OPTIONS": (
os.environ.get("ASAN_OPTIONS", "") +
":exitcode=0:check_initialization_order=0:strict_init_order=0"
).lstrip(":"),
}
blender_help = subprocess.run(