[UBsan] minimal unit tests removing OpenBSD spacial case

The OpenBSD driver now handles sanitisers with ld.lld automatically.

Reviewers: vitalybuka

Reviewed By: vitalybuka

Differential Revision: https://reviews.llvm.org/D48740

llvm-svn: 335923
This commit is contained in:
David Carlier 2018-06-28 21:10:52 +00:00
parent 0f440d832f
commit a8c5041bdf
1 changed files with 0 additions and 6 deletions

View File

@ -22,12 +22,6 @@ target_cflags = [get_required_attr(config, "target_cflags")]
clang_ubsan_cflags = ["-fsanitize-minimal-runtime"] + target_cflags
clang_ubsan_cxxflags = config.cxx_mode_flags + clang_ubsan_cflags
# OpenBSD needs lld linker to function
# TODO update the frontend driver
if config.host_os == 'OpenBSD':
clang_ubsan_cflags.append("-fuse-ld=lld")
clang_ubsan_cxxflags.append("-fuse-ld=lld")
# Define %clang and %clangxx substitutions to use in test RUN lines.
config.substitutions.append( ("%clang ", build_invocation(clang_ubsan_cflags)) )
config.substitutions.append( ("%clangxx ", build_invocation(clang_ubsan_cxxflags)) )