From e006d4e86d06bc824efa25518abbea47711f22b6 Mon Sep 17 00:00:00 2001 From: Alessandro Portale Date: Fri, 3 Nov 2023 19:29:44 +0100 Subject: [PATCH] Android: Avoid "Empty filename passed to function" warning When launching Qt Creator with clean settings on Windows, the Android plugin might cause an "Empty filename passed to function" warning that comes from deep inside Qt. This hack works around that. Change-Id: Id668b981a1467a54d852082e95963e34554006e9 Reviewed-by: Cristian Adam --- src/plugins/android/androidconfigurations.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/plugins/android/androidconfigurations.cpp b/src/plugins/android/androidconfigurations.cpp index 65dae8e7fb5..1c6f8c7cbce 100644 --- a/src/plugins/android/androidconfigurations.cpp +++ b/src/plugins/android/androidconfigurations.cpp @@ -505,6 +505,9 @@ FilePath AndroidConfig::toolchainPathFromNdk(const FilePath &ndkLocation, OsType toolchainPath = tcPath / llvmIter.fileName() / "prebuilt/"; } + if (toolchainPath.isEmpty()) + return {}; + // detect toolchain host QStringList hostPatterns; switch (hostOs) {