if symbolizer in os.environ:
config.environment[symbolizer] = os.environ[symbolizer]
+# Propagate options for sanitizers.
+for options in ['ASAN_OPTIONS']:
+ if options in os.environ:
+ config.environment[options] = os.environ[options]
+
###
import os
NOJUNK = r"(?<!\.|-|\^|/)"
for pattern in [r"\bbugpoint\b(?!-)",
- NOJUNK + r"\bclang\b(?!-)",
NOJUNK + r"\bllc\b",
r"\blli\b",
- r"\bllvm-PerfectShuffle\b",
r"\bllvm-ar\b",
r"\bllvm-as\b",
r"\bllvm-bcanalyzer\b",
r"\bFileCheck\b",
r"\bFileUpdate\b",
r"\bc-index-test\b",
- r"\bfpcmp\b",
r"\bobj2yaml\b",
r"\byaml2obj\b",
# Handle these specially as they are strings searched
if config.have_zlib == "1":
config.available_features.add("zlib")
+else:
+ config.available_features.add("nozlib")
# Native compilation: host arch == target arch
# FIXME: Consider cases that target can be executed