From ada3b60ceaa61f85d89ecdd65fb931d0efdc6b51 Mon Sep 17 00:00:00 2001 From: Alex Richardson Date: Mon, 26 Jul 2021 19:53:11 +0100 Subject: [PATCH] Fix build if QtQml was built with -no-qml-debug I cross-compiling for the recently released Arm Morello boards and the QtQml debugger is not yet compatible with CHERI-enabled architectures so I had to build QtQml with -no-qml-debug. --- shell/main.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/shell/main.cpp b/shell/main.cpp index 0bc3ad26d..b53645136 100644 --- a/shell/main.cpp +++ b/shell/main.cpp @@ -56,9 +56,11 @@ void filterConnectionSyntaxWarning(QLoggingCategory *category) int main(int argc, char *argv[]) { +#if QT_CONFIG(qml_debug) if (qEnvironmentVariableIsSet("PLASMA_ENABLE_QML_DEBUG")) { QQmlDebuggingEnabler debugger; } +#endif // Plasma scales itself to font DPI // on X, where we don't have compositor scaling, this generally works fine. // also there are bugs on older Qt, especially when it comes to fractional scaling