[compiler-rt] r335923 - [UBsan] minimal unit tests removing OpenBSD spacial case

David Carlier via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 28 14:10:52 PDT 2018


Author: devnexen
Date: Thu Jun 28 14:10:52 2018
New Revision: 335923

URL: http://llvm.org/viewvc/llvm-project?rev=335923&view=rev
Log:
[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

Modified:
    compiler-rt/trunk/test/ubsan_minimal/lit.common.cfg

Modified: compiler-rt/trunk/test/ubsan_minimal/lit.common.cfg
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/ubsan_minimal/lit.common.cfg?rev=335923&r1=335922&r2=335923&view=diff
==============================================================================
--- compiler-rt/trunk/test/ubsan_minimal/lit.common.cfg (original)
+++ compiler-rt/trunk/test/ubsan_minimal/lit.common.cfg Thu Jun 28 14:10:52 2018
@@ -22,12 +22,6 @@ target_cflags = [get_required_attr(confi
 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)) )




More information about the llvm-commits mailing list