aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorChristian Kandeler <christian.kandeler@qt.io>2019-07-24 12:39:14 +0200
committerChristian Kandeler <christian.kandeler@qt.io>2019-07-24 11:16:44 +0000
commit08ee82112c4bb16d5401a7e748b5dbf336211f3e (patch)
tree31eddc6a91e463bf0fe1053e701a927030350f6b /src
parentcbcd7054e59e49b02e318ca889a171f350663d80 (diff)
Fix qbs-setup-toolchains
We must not insert empty tool file paths into a profile. Change-Id: Ic2f2815e011cd98e9c690348fb1a86c9be7f17de Reviewed-by: Denis Shienkov <denis.shienkov@gmail.com> Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Diffstat (limited to 'src')
-rw-r--r--src/app/qbs-setup-toolchains/gccprobe.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/app/qbs-setup-toolchains/gccprobe.cpp b/src/app/qbs-setup-toolchains/gccprobe.cpp
index e72e39bbb..de6631cfd 100644
--- a/src/app/qbs-setup-toolchains/gccprobe.cpp
+++ b/src/app/qbs-setup-toolchains/gccprobe.cpp
@@ -173,9 +173,9 @@ public:
QStringLiteral("'%1' not found in '%2'. "
"Qbs will try to find it in PATH at build time.")
.arg(toolName, m_compilerDirPath)));
+ } else {
+ m_profile->setValue(propertyName, filePath);
}
-
- m_profile->setValue(propertyName, filePath);
}
private: