From kde-commits Mon Jul 30 17:55:06 2012 From: =?utf-8?q?Lubo=C5=A1=20Lu=C5=88=C3=A1k?= Date: Mon, 30 Jul 2012 17:55:06 +0000 To: kde-commits Subject: icecream/daemon Message-Id: <20120730175506.C0BC9AC7A9 () svn ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=134367118401823 SVN commit 1308595 by lunakl: no "basic" native env really anymore, now with env per each compiler M +5 -8 main.cpp --- trunk/icecream/daemon/main.cpp #1308594:1308595 @@ -388,9 +388,10 @@ { Clients clients; map envs_last_use; - // Map of native environments, the basic one and possibly more containing additional files - // (such as compiler plugins). The key is a concatenated list of the additional files - // (or empty string for the basic one). + // Map of native environments, the basic one(s) containing just the compiler + // and possibly more containing additional files (such as compiler plugins). + // The key is the compiler name and a concatenated list of the additional files + // (or just the compiler name for the basic ones). map native_environments; string envbasedir; uid_t nobody_uid; @@ -708,13 +709,9 @@ if ( cache_size ) result += " Cache Size: " + toString( cache_size ) + "\n"; result += " Architecture: " + machine_name + "\n"; - if ( native_environments.find( "" ) != native_environments.end()) - result += " NativeEnv (basic): " + native_environments.at( "" ).name + "\n"; for (map::const_iterator it = native_environments.begin(); - it!= native_environments.end(); ++it) { - if( !it->first.empty()) + it!= native_environments.end(); ++it) result += " NativeEnv (" + it->first + "): " + it->second.name + "\n"; - } if ( !envs_last_use.empty() ) result += " Now: " + toString( time( 0 ) ) + "\n";