Don't detect host compiler on Linux
authorCasper Hornstrup <chorns@users.sourceforge.net>
Sat, 23 Apr 2005 17:24:13 +0000 (17:24 +0000)
committerCasper Hornstrup <chorns@users.sourceforge.net>
Sat, 23 Apr 2005 17:24:13 +0000 (17:24 +0000)
svn path=/branches/xmlbuildsystem/; revision=14782

reactos/tools/rbuild/backend/mingw/mingw.cpp

index c446e1f..6dd9bdd 100644 (file)
@@ -590,11 +590,13 @@ MingwBackend::DetectCompiler ()
                compilerCommand = ROS_PREFIXValue + "-gcc";\r
                detectedCompiler = TryToDetectThisCompiler ( compilerCommand );\r
        }\r
+#if defined(WIN32)\r
        if ( !detectedCompiler )\r
        {\r
                compilerCommand = "gcc";\r
                detectedCompiler = TryToDetectThisCompiler ( compilerCommand );\r
        }\r
+#endif\r
        if ( !detectedCompiler )\r
        {\r
                compilerCommand = "mingw32-gcc";\r