[PATCH] D48740: [UBsan] minimal unit tests removing OpenBSD special case

David CARLIER via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 28 13:24:54 PDT 2018


devnexen created this revision.
devnexen added a reviewer: vitalybuka.
devnexen created this object with visibility "All Users".
Herald added subscribers: Sanitizers, llvm-commits, krytarowski.

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


Repository:
  rCRT Compiler Runtime

https://reviews.llvm.org/D48740

Files:
  test/ubsan_minimal/lit.common.cfg


Index: test/ubsan_minimal/lit.common.cfg
===================================================================
--- test/ubsan_minimal/lit.common.cfg
+++ test/ubsan_minimal/lit.common.cfg
@@ -22,12 +22,6 @@
 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)) )


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D48740.153382.patch
Type: text/x-patch
Size: 782 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180628/14f25b7f/attachment.bin>


More information about the llvm-commits mailing list