summaryrefslogtreecommitdiff
path: root/devel/qt6-qttools/patches/patch-src_linguist_lupdate_CMakeLists.txt
blob: 07869b9c46e7925bb02e3a5694cbb38246172e2a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
$NetBSD: patch-src_linguist_lupdate_CMakeLists.txt,v 1.1 2022/11/30 20:57:35 nros Exp $

Clang is compiled without rtti so when compiling with gcc turn of rtti
this fixes problems with undefined reference to things such as
"typeinfo for clang::ASTConsumer" 

--- src/linguist/lupdate/CMakeLists.txt.orig	2021-02-25 02:26:59.000000000 +0000
+++ src/linguist/lupdate/CMakeLists.txt
@@ -99,6 +99,8 @@ qt_internal_extend_target(${target_name} CONDITION QT_
 # special case begin
 if(QT_FEATURE_clangcpp)
     set_property(SOURCE clangtoolastreader.cpp PROPERTY SKIP_AUTOMOC ON)
+    set_source_files_properties(cpp_clang.cpp lupdatepreprocessoraction.cpp
+                                PROPERTIES COMPILE_OPTIONS "-fno-rtti")
 endif()
 # special case end