[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:
parent
0f440d832f
commit
a8c5041bdf
|
@ -22,12 +22,6 @@ target_cflags = [get_required_attr(config, "target_cflags")]
|
||||||
clang_ubsan_cflags = ["-fsanitize-minimal-runtime"] + target_cflags
|
clang_ubsan_cflags = ["-fsanitize-minimal-runtime"] + target_cflags
|
||||||
clang_ubsan_cxxflags = config.cxx_mode_flags + clang_ubsan_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.
|
# Define %clang and %clangxx substitutions to use in test RUN lines.
|
||||||
config.substitutions.append( ("%clang ", build_invocation(clang_ubsan_cflags)) )
|
config.substitutions.append( ("%clang ", build_invocation(clang_ubsan_cflags)) )
|
||||||
config.substitutions.append( ("%clangxx ", build_invocation(clang_ubsan_cxxflags)) )
|
config.substitutions.append( ("%clangxx ", build_invocation(clang_ubsan_cxxflags)) )
|
||||||
|
|
Loading…
Reference in New Issue