Make configure.exe only detect each compiler once
authorBradley T. Hughes <bradley.hughes@nokia.com>
Mon, 27 Feb 2012 10:21:10 +0000 (11:21 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Tue, 21 Jan 2014 08:37:40 +0000 (09:37 +0100)
commit248918b03fcbe6e20d1f8e757e3430bbf0f20d47
treeac85380e0dbc2139c15e15b120c3f632223fb0e4
parentcf179ef3e38516555ce60517aa8e085b33e75744
Make configure.exe only detect each compiler once

When reading the registry on a 64 bit Windows, the same compiler
can be detected twice, breaking the -platform detection even when
only one compiler is in the path.
Fix this by taking advantage of the CompilerInfo struct ordering
and ignore detection of the same compiler.

Change-Id: I583230520d2e0859196f9d7c8af31adbb981a6ca
Reviewed-by: Joerg Bornemann <joerg.bornemann@nokia.com>
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
(cherry picked from commit fa5cf01e7468e53508b15726625fd681892119a4)
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
tools/configure/environment.cpp