svn path=/branches/xmlbuildsystem/; revision=13889
string path = "tools" SSEP "rbuild" SSEP "backend" SSEP "mingw" SSEP "pch_detection.h";\r
system ( ssprintf("gcc -c %s", path.c_str()).c_str() );\r
path += ".gch";\r
+\r
+ FILE* f = fopen ( path.c_str(), "rb" );\r
+ if ( f )\r
{\r
- FILE* f = fopen ( path.c_str(), "rb" );\r
- if ( f )\r
- {\r
- use_pch = true;\r
- fclose(f);\r
- unlink ( path.c_str() );\r
- }\r
- else\r
- use_pch = false;\r
+ use_pch = true;\r
+ fclose(f);\r
+ unlink ( path.c_str() );\r
}\r
+ else\r
+ use_pch = false;\r
+\r
// TODO FIXME - eventually check for ROS_USE_PCH env var and\r
// allow that to override use_pch if true\r
}\r
else\r
{\r
fprintf ( fMakefile,\r
- "\t%s %s -o %s %s %s %s\n\n",\r
+ "\t%s %s -o %s %s %s %s\n",\r
linker.c_str (),\r
linkerParameters.c_str (),\r
target.c_str (),\r
}\r
\r
fprintf ( fMakefile,\r
- "\t${rsym} %s %s\n",\r
+ "\t${rsym} %s %s\n\n",\r
target.c_str (),\r
target.c_str () );\r
}\r
objectsMacro.c_str (),\r
importLibraryDependencies.c_str () );\r
fprintf ( fMakefile,\r
- "\t${rm} %s\n\n",\r
+ "\t${rm} %s\n",\r
temp_exp.c_str () );\r
fprintf ( fMakefile,\r
- "\t${rsym} %s %s\n",\r
+ "\t${rsym} %s %s\n\n",\r
target.c_str (),\r
target.c_str () );\r
}\r