Please use GitHub pull requests for new patches. Phabricator shutdown timeline
Changeset View
Changeset View
Standalone View
Standalone View
compiler-rt/test/asan/lit.cfg
Show First 20 Lines • Show All 59 Lines • ▼ Show 20 Lines | if config.compiler_id == 'GNU': | ||||
extra_link_flags = ["-pthread", "-lstdc++", libdl_flag] | extra_link_flags = ["-pthread", "-lstdc++", libdl_flag] | ||||
else: | else: | ||||
extra_link_flags = [] | extra_link_flags = [] | ||||
# Setup default compiler flags used with -fsanitize=address option. | # Setup default compiler flags used with -fsanitize=address option. | ||||
# FIXME: Review the set of required flags and check if it can be reduced. | # FIXME: Review the set of required flags and check if it can be reduced. | ||||
target_cflags = [get_required_attr(config, "target_cflags")] + extra_link_flags | target_cflags = [get_required_attr(config, "target_cflags")] + extra_link_flags | ||||
target_cxxflags = config.cxx_mode_flags + target_cflags | target_cxxflags = config.cxx_mode_flags + target_cflags | ||||
clang_asan_static_cflags = (["-fsanitize=address", | clang_asan_static_cflags = (config.sanitize_address_cflags + | ||||
"-mno-omit-leaf-frame-pointer", | ["-mno-omit-leaf-frame-pointer", | ||||
"-fno-omit-frame-pointer", | "-fno-omit-frame-pointer", | ||||
"-fno-optimize-sibling-calls"] + | "-fno-optimize-sibling-calls"] + | ||||
config.debug_info_flags + target_cflags) | config.debug_info_flags + target_cflags) | ||||
if config.target_arch == 's390x': | if config.target_arch == 's390x': | ||||
clang_asan_static_cflags.append("-mbackchain") | clang_asan_static_cflags.append("-mbackchain") | ||||
clang_asan_static_cxxflags = config.cxx_mode_flags + clang_asan_static_cflags | clang_asan_static_cxxflags = config.cxx_mode_flags + clang_asan_static_cflags | ||||
asan_dynamic_flags = [] | asan_dynamic_flags = [] | ||||
▲ Show 20 Lines • Show All 139 Lines • Show Last 20 Lines |