summaryrefslogtreecommitdiffstats
path: root/recipes-qt/qt5/qtbase/0016-Define-QMAKE_CXX.COMPILER_MACROS-for-clang-on-linux.patch
diff options
context:
space:
mode:
authorMikko Gronoff <mikko.gronoff@qt.io>2019-05-03 12:24:15 +0300
committerMikko Gronoff <mikko.gronoff@qt.io>2019-05-03 12:25:44 +0300
commite26163d066a867ca8f630f7caffff207ef26b4a7 (patch)
treec55678478e7bb344459d9bdf2528f4e321e9c4d0 /recipes-qt/qt5/qtbase/0016-Define-QMAKE_CXX.COMPILER_MACROS-for-clang-on-linux.patch
parent0778f92089010ac7e2c3ee1f36c8c9d5c102bbf9 (diff)
parent89ac66bf3969b48eb771ef4c06a0b8df00fd178a (diff)
downloadmeta-qt5-e26163d066a867ca8f630f7caffff207ef26b4a7.tar.gz
Merge remote-tracking branch 'qtyocto/5.12' into 5.13
* qtyocto/5.12: 89ac66b Merge remote-tracking branch 'qtyocto/upstream/warrior' into 5.12 f087aeb Revert "qtbase: Adjust target mkspec settings" 8586caf qt5: update SRCREVs after v5.12.3 tags were downmerged to 5.12 branch 7dc422d qtwayland: check also that the destination for private headers exists before installing them 84d647a qtwayland: improve manual header installation 3d60f9a qtwayland: workaround upstream bug: install missing headers manually eb5d6da qtwayland: disable gold for all archs like in qtbase e2707a0 qt5: upgrade to 5.12.3 0778424 qtbase: disable gold for all archs not just x86 4303873 qtbase-native: use QT_CONFIG_FLAGS variable like qtbase and nativesdk-qtbase 8895ea3 qtbase: Fix build with recent oe-core/pseudo on hosts with glibc >= 2.28 95974f4 qtbase, qtmultimedia: refresh patches to apply cleanly and update them on github.com/meta-qt5 forks a4bf240 qtbase-native: add native libdir to search path adf7f60 qt5: patch build paths from installed files 28d4bfd Upgrade to 5.12.2 5a32838 layer.conf: Add warrior to compatible release series Conflicts: recipes-qt/qt5/qt3d/0001-Allow-a-tools-only-build.patch recipes-qt/qt5/qtbase_git.bb recipes-qt/qt5/qtwebengine/0001-Force-host-toolchain-configuration.patch recipes-qt/qt5/qtwebengine/chromium/0001-chromium-Force-host-toolchain-configuration.patch recipes-qt/qt5/qtwebengine/chromium/0003-chromium-Fix-build-with-gcc8.patch recipes-qt/qt5/qtwebengine/chromium/0019-chromium-fix-build-with-clang.patch recipes-qt/qt5/qtwebengine/chromium/0020-chromium-Check-for-__ARM_FP-2-before-using-__fp16.patch recipes-qt/qt5/qtwebengine/chromium/0021-chromium-Exclude-CRC32-for-32bit-arm.patch Change-Id: Iec1b6e65f8dfbb73ab96d68a91ff6a5e7d93c7de
Diffstat (limited to 'recipes-qt/qt5/qtbase/0016-Define-QMAKE_CXX.COMPILER_MACROS-for-clang-on-linux.patch')
-rw-r--r--recipes-qt/qt5/qtbase/0016-Define-QMAKE_CXX.COMPILER_MACROS-for-clang-on-linux.patch41
1 files changed, 41 insertions, 0 deletions
diff --git a/recipes-qt/qt5/qtbase/0016-Define-QMAKE_CXX.COMPILER_MACROS-for-clang-on-linux.patch b/recipes-qt/qt5/qtbase/0016-Define-QMAKE_CXX.COMPILER_MACROS-for-clang-on-linux.patch
new file mode 100644
index 00000000..e3a92168
--- /dev/null
+++ b/recipes-qt/qt5/qtbase/0016-Define-QMAKE_CXX.COMPILER_MACROS-for-clang-on-linux.patch
@@ -0,0 +1,41 @@
1From 59c5c149ad1fa3015f1fee34e87e9f8ab89f5de1 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Thu, 6 Dec 2018 15:06:20 -0800
4Subject: [PATCH] Define QMAKE_CXX.COMPILER_MACROS for clang on linux
5
6This is required when using clang for compiler, fixes
7mkspecs/features/toolchain.prf:215: Variable QMAKE_CXX.COMPILER_MACROS is not defined.
8
9Upstream-Status: Pending
10Signed-off-by: Khem Raj <raj.khem@gmail.com>
11---
12 mkspecs/features/toolchain.prf | 9 +++++++++
13 1 file changed, 9 insertions(+)
14
15diff --git a/mkspecs/features/toolchain.prf b/mkspecs/features/toolchain.prf
16index 9c3a64aa8b..d0758ab778 100644
17--- a/mkspecs/features/toolchain.prf
18+++ b/mkspecs/features/toolchain.prf
19@@ -41,6 +41,13 @@ defineReplace(qtVariablesFromGCC) {
20 return($$ret)
21 }
22
23+defineReplace(qtVariablesFromCLANG) {
24+ ret = $$system("$$1 $$2 -E $$system_quote($$PWD/data/macros.cpp) \
25+ <$$QMAKE_SYSTEM_NULL_DEVICE 2>$$QMAKE_SYSTEM_NULL_DEVICE", lines, ec)
26+ !equals(ec, 0): qtCompilerErrror($$1, $$ret)
27+ return($$ret)
28+}
29+
30 isEmpty($${target_prefix}.COMPILER_MACROS) {
31 msvc {
32 clang_cl {
33@@ -60,6 +67,8 @@ isEmpty($${target_prefix}.COMPILER_MACROS) {
34 } else {
35 vars = $$qtVariablesFromMSVC($$QMAKE_CXX)
36 }
37+ } else: clang {
38+ vars = $$qtVariablesFromCLANG($$QMAKE_CXX, $$QMAKE_CXXFLAGS)
39 } else: gcc|ghs {
40 vars = $$qtVariablesFromGCC($$QMAKE_CXX)
41 }