forked from qt-creator/qt-creator
Android: Use a more direct access to the tools' path
Change-Id: I49c574144fd4d6b2edd829538c424465c1fe7f05 Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
This commit is contained in:
@@ -1424,10 +1424,10 @@ void AndroidConfigurations::updateAutomaticKitList()
|
||||
KitManager::deregisterKit(k);
|
||||
}
|
||||
|
||||
Environment AndroidConfigurations::toolsEnvironment(const AndroidConfig &config)
|
||||
Environment AndroidConfig::toolsEnvironment() const
|
||||
{
|
||||
Environment env = Environment::systemEnvironment();
|
||||
FilePath jdkLocation = config.openJDKLocation();
|
||||
FilePath jdkLocation = openJDKLocation();
|
||||
if (!jdkLocation.isEmpty()) {
|
||||
env.set(Constants::JAVA_HOME_ENV_VAR, jdkLocation.toUserOutput());
|
||||
env.prependOrSetPath(jdkLocation.pathAppended("bin"));
|
||||
|
||||
Reference in New Issue
Block a user