Skip to content

Disable TSan support under 32bit. #11904

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Sep 15, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 17 additions & 10 deletions test/lit.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -908,17 +908,24 @@ def source_compiler_rt_libs(path):
source_compiler_rt_libs(os.path.join(test_resource_dir, 'clang', 'lib',
platform.system().lower()))

def check_runtime_feature(name):
def check_runtime_libs(features_to_check):
for lib in config.compiler_rt_libs:
if lib.startswith('libclang_rt.' + name + '_'):
config.available_features.add(name + '_runtime')
return

check_runtime_feature('profile')
check_runtime_feature('asan')
check_runtime_feature('ubsan')
check_runtime_feature('tsan')
check_runtime_feature('safestack')
for (libname, feature) in features_to_check:
if lib.startswith("libclang_rt." + libname + "_"):
config.available_features.add(feature)

runtime_libs = [
('profile', 'profile_runtime'),
('asan', 'asan_runtime'),
('ubsan', 'ubsan_runtime'),
('tsan', 'tsan_runtime'),
('safestack', 'safestack_runtime')
]

if run_ptrsize != "32":
runtime_libs.append(('tsan', 'tsan_runtime'))

check_runtime_libs(runtime_libs)

if not getattr(config, 'target_run_simple_swift', None):
config.target_run_simple_swift = (
Expand Down