diff --git a/src/plugins/projectexplorer/projectexplorer.cpp b/src/plugins/projectexplorer/projectexplorer.cpp index d4cd7186598..56b30b3a996 100644 --- a/src/plugins/projectexplorer/projectexplorer.cpp +++ b/src/plugins/projectexplorer/projectexplorer.cpp @@ -1497,6 +1497,13 @@ bool ProjectExplorerPlugin::initialize(const QStringList &arguments, QString *er return BuildConfiguration::buildTypeName(type); }); + expander->registerPrefix(Constants::VAR_CURRENTBUILD_ENV, + BuildConfiguration::tr("Variables in the current build environment"), + [](const QString &var) { + if (BuildConfiguration *bc = activeBuildConfiguration()) + return bc->environment().value(var); + return QString(); + }); QString fileDescription = tr("File where current session is saved."); auto fileHandler = [] { return SessionManager::sessionNameToFileName(SessionManager::activeSession()).toString(); };