https://github.com/cme created https://github.com/llvm/llvm-project/pull/84572

clang-fuzzer-dictionary is a C-source tool so by default doesn't link with 
CMake's specified C++ libraries, which are needed for libclang.

(This fixes issues building with C++ libraries other than the system default)

>From 8384af937f72717ee01f2d188b663fa49ab407f6 Mon Sep 17 00:00:00 2001
From: Colin McEwan <colin.mce...@mediatek.com>
Date: Fri, 8 Mar 2024 21:38:30 +0000
Subject: [PATCH] [clang-fuzzer] Set the link language for dictionary

clang-fuzzer-dictionary is a C-source tool so by default doesn't
link with CMake's specified C++ libraries, which are needed for
libclang.

(This fixes issues building with C++ libraries other than the system
default)
---
 clang/tools/clang-fuzzer/dictionary/CMakeLists.txt | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/clang/tools/clang-fuzzer/dictionary/CMakeLists.txt 
b/clang/tools/clang-fuzzer/dictionary/CMakeLists.txt
index ee4aa587ea54dd..5bf2a5eab872cc 100644
--- a/clang/tools/clang-fuzzer/dictionary/CMakeLists.txt
+++ b/clang/tools/clang-fuzzer/dictionary/CMakeLists.txt
@@ -2,3 +2,7 @@ add_clang_executable(clang-fuzzer-dictionary
   dictionary.c
   )
 
+set_target_properties(clang-fuzzer-dictionary
+  PROPERTIES
+  LINKER_LANGUAGE CXX
+  )

_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to