diff options
author | Christian Kandeler <christian.kandeler@qt.io> | 2017-03-09 17:26:10 +0100 |
---|---|---|
committer | Christian Kandeler <christian.kandeler@qt.io> | 2017-03-31 08:04:22 +0000 |
commit | 24000d556fefdb3dcd4103d3d1679429434e6f58 (patch) | |
tree | 2bba620fe4ab8c94035700a02f4b8c2aa5be2573 /src/lib/corelib/tools/profile.h | |
parent | 03fa92611c6e3472ca9acd722e029fe5c5a18d79 (diff) |
Allow running qbs without a profile
When no profile is given and no default one exists, simply use the
modules' default values.
The most relevant effect of this is that users can now build for the
host platform by simply typing "qbs" without having done any manual
setup, if there is a compiler in the PATH.
[ChangeLog] It is no longer strictly required to provide a profile.
Change-Id: Ifee09d2653dfbd4ea06c59248d78e376da2f217b
Reviewed-by: Jake Petroules <jake.petroules@qt.io>
Diffstat (limited to 'src/lib/corelib/tools/profile.h')
-rw-r--r-- | src/lib/corelib/tools/profile.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/corelib/tools/profile.h b/src/lib/corelib/tools/profile.h index 01663a09e..3f207e09e 100644 --- a/src/lib/corelib/tools/profile.h +++ b/src/lib/corelib/tools/profile.h @@ -73,6 +73,8 @@ public: static QString cleanName(const QString &name); + static QString fallbackName() { return QLatin1String("none"); } + private: static QString baseProfileKey(); void checkBaseProfileExistence(const Profile &baseProfile) const; |