Please use GitHub pull requests for new patches. Phabricator shutdown timeline
Changeset View
Changeset View
Standalone View
Standalone View
compiler-rt/test/sanitizer_common/lit.common.cfg
# -*- Python -*- | # -*- Python -*- | ||||
# Setup source root. | # Setup source root. | ||||
config.test_source_root = os.path.join(os.path.dirname(__file__), "TestCases") | config.test_source_root = os.path.join(os.path.dirname(__file__), "TestCases") | ||||
config.name = "SanitizerCommon-" + config.name_suffix | config.name = "SanitizerCommon-" + config.name_suffix | ||||
default_tool_options = [] | default_tool_options = [] | ||||
if config.tool_name == "asan": | if config.tool_name == "asan": | ||||
tool_cflags = ["-fsanitize=address"] | tool_cflags = config.sanitize_address_cflags | ||||
tool_options = "ASAN_OPTIONS" | tool_options = "ASAN_OPTIONS" | ||||
elif config.tool_name == "tsan": | elif config.tool_name == "tsan": | ||||
tool_cflags = ["-fsanitize=thread"] | tool_cflags = ["-fsanitize=thread"] | ||||
tool_options = "TSAN_OPTIONS" | tool_options = "TSAN_OPTIONS" | ||||
elif config.tool_name == "msan": | elif config.tool_name == "msan": | ||||
tool_cflags = ["-fsanitize=memory"] | tool_cflags = ["-fsanitize=memory"] | ||||
tool_options = "MSAN_OPTIONS" | tool_options = "MSAN_OPTIONS" | ||||
elif config.tool_name == "lsan": | elif config.tool_name == "lsan": | ||||
▲ Show 20 Lines • Show All 45 Lines • Show Last 20 Lines |