diff --git a/reactos/tools/rbuild/backend/mingw/mingw.cpp b/reactos/tools/rbuild/backend/mingw/mingw.cpp index c446e1f3c45..6dd9bddc419 100644 --- a/reactos/tools/rbuild/backend/mingw/mingw.cpp +++ b/reactos/tools/rbuild/backend/mingw/mingw.cpp @@ -590,11 +590,13 @@ MingwBackend::DetectCompiler () compilerCommand = ROS_PREFIXValue + "-gcc"; detectedCompiler = TryToDetectThisCompiler ( compilerCommand ); } +#if defined(WIN32) if ( !detectedCompiler ) { compilerCommand = "gcc"; detectedCompiler = TryToDetectThisCompiler ( compilerCommand ); } +#endif if ( !detectedCompiler ) { compilerCommand = "mingw32-gcc";