summaryrefslogtreecommitdiff
path: root/src/plugins/genericprojectmanager/genericbuildconfiguration.h
diff options
context:
space:
mode:
authorTobias Hunger <tobias.hunger@qt.io>2017-10-17 12:27:37 +0200
committerTobias Hunger <tobias.hunger@qt.io>2017-10-18 14:35:07 +0000
commit10cb0b77a0429a0ac6b427bbc3f07540172c2894 (patch)
tree88a6777a27f14a0ad4ca23e3e6c4f311d7473d87 /src/plugins/genericprojectmanager/genericbuildconfiguration.h
parent527594bb838efd5663b99577323756ebec6a3d70 (diff)
downloadqt-creator-10cb0b77a0429a0ac6b427bbc3f07540172c2894.tar.gz
ProjectExplorer: Do not prepend compiler path to PATH everywhere!
Do not unconditionally prepend the (c++) compiler path to PATH for all projects using GCC-derived toolchains. Prepend the compiler path in the Qmake- and GenericBuildConfigurations instead. Also change the order: Apply buildconfiguration's addToEnvironment first, only then apply the kit's addToEnvironment. This does change a few things: * CMake and Qbs will now get the normal PATH * MSVC compilers will have their compiler path prepended to PATH by the effected BuildConfigurations. This should be harmless, since that happens before the environment setup script is appended. Task-number: QTCREATORBUG-18714 Change-Id: I548182bc447d80d24f4de4ce7cf12ee1a753ed26 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Diffstat (limited to 'src/plugins/genericprojectmanager/genericbuildconfiguration.h')
-rw-r--r--src/plugins/genericprojectmanager/genericbuildconfiguration.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/genericprojectmanager/genericbuildconfiguration.h b/src/plugins/genericprojectmanager/genericbuildconfiguration.h
index 75f5ceef5d..54e375e88f 100644
--- a/src/plugins/genericprojectmanager/genericbuildconfiguration.h
+++ b/src/plugins/genericprojectmanager/genericbuildconfiguration.h
@@ -52,6 +52,8 @@ public:
BuildType buildType() const override;
+ void addToEnvironment(Utils::Environment &env) const final;
+
protected:
GenericBuildConfiguration(ProjectExplorer::Target *parent, GenericBuildConfiguration *source);
GenericBuildConfiguration(ProjectExplorer::Target *parent, Core::Id id);