@@ -175,13 +175,10 @@ public void Preprocess(string headerFile, DataReceivedEventHandler handler)
175
175
WorkingDirectory = Environment . CurrentDirectory
176
176
} ;
177
177
178
- File . WriteAllText ( GccXmlGccOptionsFile , "-dDI -E" ) ;
178
+ var arguments = "" ;
179
+ arguments += " --castxml-gccxml" ;
180
+ arguments += " -x c++ -std=c++11 -E -dD" ;
179
181
180
- var arguments = "" ; // "--gccxml-gcc-options " + GccXmlGccOptionsFile;
181
- // Overrides settings for gccxml for compiling Win8 version
182
- arguments += " --gccxml-config \" " + Path . Combine ( Path . GetDirectoryName ( ExecutablePath ) , @"..\share\gccxml-0.9\vc" + vsVersion + @"\gccxml_config" ) + "\" " ;
183
-
184
- arguments += " -E --gccxml-gcc-options " + GccXmlGccOptionsFile ;
185
182
foreach ( var directory in GetIncludePaths ( ) )
186
183
arguments += " " + directory ;
187
184
@@ -260,7 +257,7 @@ private List<string> GetIncludePaths()
260
257
261
258
if ( directory . IsOverride )
262
259
{
263
- paths . Add ( "-iwrapper \" " + path . TrimEnd ( '\\ ' ) + "\" " ) ;
260
+ paths . Add ( "-I \" " + path . TrimEnd ( '\\ ' ) + "\" " ) ;
264
261
}
265
262
else
266
263
{
@@ -371,12 +368,11 @@ public StreamReader Process(string headerFile)
371
368
// Delete any previously generated xml file
372
369
File . Delete ( xmlFile ) ;
373
370
374
- var arguments = "" ; // "--gccxml-gcc-options " + GccXmlGccOptionsFile;
375
-
376
- // Overrides settings for gccxml for compiling Win8 version
377
- arguments += " --gccxml-config \" " + Path . Combine ( Path . GetDirectoryName ( ExecutablePath ) , @"..\share\gccxml-0.9\vc" + vsVersion + @"\gccxml_config" ) + " \" " ;
371
+ var arguments = "" ;
372
+ arguments += " --castxml-gccxml" ;
373
+ arguments += " -x c++ -std=c++11 -fmsc-version=1800 -fms-extensions -fms-compatibility -Wno-microsoft-enum-value -Wno-macro-redefined" ;
374
+ arguments += " -o " + xmlFile ;
378
375
379
- arguments += " -fxml=" + xmlFile ;
380
376
foreach ( var directory in GetIncludePaths ( ) )
381
377
arguments += " " + directory ;
382
378
0 commit comments