mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 09:25:10 +00:00
Fix GCC detection in RBuild (first check TARGET_CC).
svn path=/trunk/; revision=43040
This commit is contained in:
parent
739a12f946
commit
92b08a01ef
1 changed files with 14 additions and 2 deletions
|
@ -740,13 +740,25 @@ MingwBackend::DetectCompiler ()
|
|||
|
||||
if ( ProjectNode.configuration.Compiler == GnuGcc )
|
||||
{
|
||||
const string& TARGET_CCValue = Environment::GetVariable ( "TARGET_CC" );
|
||||
const string& ROS_PREFIXValue = Environment::GetVariable ( "ROS_PREFIX" );
|
||||
|
||||
if ( ROS_PREFIXValue.length () > 0 )
|
||||
{
|
||||
compilerPrefix = ROS_PREFIXValue;
|
||||
compilerCommand = compilerPrefix + "-gcc";
|
||||
compilerPrefix = "";
|
||||
compilerCommand = TARGET_CCValue;
|
||||
detectedCompiler = TryToDetectThisCompiler ( compilerCommand );
|
||||
}
|
||||
|
||||
if ( !detectedCompiler )
|
||||
{
|
||||
if ( ROS_PREFIXValue.length () > 0 )
|
||||
{
|
||||
compilerPrefix = ROS_PREFIXValue;
|
||||
compilerCommand = compilerPrefix + "-gcc";
|
||||
detectedCompiler = TryToDetectThisCompiler ( compilerCommand );
|
||||
}
|
||||
}
|
||||
#if defined(WIN32)
|
||||
if ( !detectedCompiler )
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue