From b7708daac26875aa251e5d7f8567f51f76450448 Mon Sep 17 00:00:00 2001 From: Denis Shienkov Date: Tue, 19 Feb 2019 13:29:09 +0300 Subject: bare-metal: Don't set the IAR's qbs.architecture if it is empty Change-Id: Id8467f8bb703ffc98b0f77cd390a7e8a22961ac8 Reviewed-by: Christian Kandeler --- src/app/qbs-setup-toolchains/probe.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/app/qbs-setup-toolchains/probe.cpp b/src/app/qbs-setup-toolchains/probe.cpp index 2195106a1..97ba4e0cc 100644 --- a/src/app/qbs-setup-toolchains/probe.cpp +++ b/src/app/qbs-setup-toolchains/probe.cpp @@ -275,7 +275,8 @@ static Profile createIarProfile(const QFileInfo &compiler, Settings *settings, Profile profile(profileName, settings); profile.setValue(QLatin1String("cpp.toolchainInstallPath"), compiler.absolutePath()); profile.setValue(QLatin1String("qbs.toolchainType"), QLatin1String("iar")); - profile.setValue(QLatin1String("qbs.architecture"), architecture); + if (!architecture.isEmpty()) + profile.setValue(QLatin1String("qbs.architecture"), architecture); qStdout << Tr::tr("Profile '%1' created for '%2'.").arg( profile.name(), compiler.absoluteFilePath()) -- cgit v1.2.3