[compiler-rt] 758318b - [compiler-rt] [test] [ubsan] Build .cpp files with %clangxx

Martin Storsjö via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 10 14:03:51 PDT 2023


Author: Martin Storsjö
Date: 2023-04-11T00:02:33+03:00
New Revision: 758318bee351282b3bb244cc4067eb876e86b156

URL: https://github.com/llvm/llvm-project/commit/758318bee351282b3bb244cc4067eb876e86b156
DIFF: https://github.com/llvm/llvm-project/commit/758318bee351282b3bb244cc4067eb876e86b156.diff

LOG: [compiler-rt] [test] [ubsan] Build .cpp files with %clangxx

This fixes linker errors in mingw configurations, where the ubsan
runtime needs the C++ standard library when instrumenting C++ code.

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

Added: 
    

Modified: 
    compiler-rt/test/ubsan/TestCases/Pointer/align-assume-ignorelist.cpp

Removed: 
    


################################################################################
diff  --git a/compiler-rt/test/ubsan/TestCases/Pointer/align-assume-ignorelist.cpp b/compiler-rt/test/ubsan/TestCases/Pointer/align-assume-ignorelist.cpp
index 6c55aa139b436..3f9a1ceff9dad 100644
--- a/compiler-rt/test/ubsan/TestCases/Pointer/align-assume-ignorelist.cpp
+++ b/compiler-rt/test/ubsan/TestCases/Pointer/align-assume-ignorelist.cpp
@@ -1,9 +1,9 @@
-// RUN: %clang -fsanitize=alignment -fno-sanitize-recover=alignment                           -O0 %s -o %t && not %run %t 2>&1 | FileCheck %s --implicit-check-not=" assumption "
+// RUN: %clangxx -fsanitize=alignment -fno-sanitize-recover=alignment                           -O0 %s -o %t && not %run %t 2>&1 | FileCheck %s --implicit-check-not=" assumption "
 
 // RUN: rm -f %tmp
 // RUN: echo "[alignment]" >> %tmp
 // RUN: echo "fun:main" >> %tmp
-// RUN: %clang -fsanitize=alignment -fno-sanitize-recover=alignment -fsanitize-ignorelist=%tmp -O0 %s -o %t && %run %t 2>&1
+// RUN: %clangxx -fsanitize=alignment -fno-sanitize-recover=alignment -fsanitize-ignorelist=%tmp -O0 %s -o %t && %run %t 2>&1
 
 #include <stdlib.h>
 


        


More information about the llvm-commits mailing list