@@ -166,24 +166,32 @@ public static void Main(string[] args)
166
166
ConsoleDriver . Run ( new ParserGen ( GeneratorKind . CSharp , "x86_64-pc-win32-msvc" ) ) ;
167
167
Console . WriteLine ( ) ;
168
168
}
169
+ else
170
+ {
171
+ Console . WriteLine ( "Skipping generation for Windows due to missing headers, only supported on Windows platform." ) ;
172
+ }
169
173
170
- var osxHeadersPath = Path . Combine ( GetSourceDirectory ( "build" ) , @"headers\ osx" ) ;
174
+ var osxHeadersPath = Path . Combine ( GetSourceDirectory ( "build" ) , @"headers" , " osx") ;
171
175
if ( Directory . Exists ( osxHeadersPath ) || Platform . IsMacOS )
172
176
{
173
- Console . WriteLine ( "Generating the C# parser bindings for OSX x86..." ) ;
177
+ Console . WriteLine ( "Generating the C# parser bindings for macOS x86..." ) ;
174
178
ConsoleDriver . Run ( new ParserGen ( GeneratorKind . CSharp , "i686-apple-darwin12.4.0" ) ) ;
175
179
Console . WriteLine ( ) ;
176
180
177
- Console . WriteLine ( "Generating the C# parser bindings for OSX x64..." ) ;
181
+ Console . WriteLine ( "Generating the C# parser bindings for macOS x64..." ) ;
178
182
ConsoleDriver . Run ( new ParserGen ( GeneratorKind . CSharp , "x86_64-apple-darwin12.4.0" ) ) ;
179
183
Console . WriteLine ( ) ;
180
184
181
- Console . WriteLine ( "Generating the C# parser bindings for OSX ARM64..." ) ;
185
+ Console . WriteLine ( "Generating the C# parser bindings for macOS ARM64..." ) ;
182
186
ConsoleDriver . Run ( new ParserGen ( GeneratorKind . CSharp , "arm64-apple-darwin12.4.0" ) ) ;
183
187
Console . WriteLine ( ) ;
184
188
}
189
+ else
190
+ {
191
+ Console . WriteLine ( "Skipping generation for macOS due to missing headers." ) ;
192
+ }
185
193
186
- var linuxHeadersPath = Path . Combine ( GetSourceDirectory ( "build" ) , @"headers\ x86_64-linux-gnu" ) ;
194
+ var linuxHeadersPath = Path . Combine ( GetSourceDirectory ( "build" ) , @"headers" , " x86_64-linux-gnu") ;
187
195
if ( Directory . Exists ( linuxHeadersPath ) || Platform . IsLinux )
188
196
{
189
197
Console . WriteLine ( "Generating the C# parser bindings for Linux..." ) ;
@@ -204,6 +212,10 @@ public static void Main(string[] args)
204
212
isGnuCpp11Abi : true ) ) ;
205
213
Console . WriteLine ( ) ;
206
214
}
215
+ else
216
+ {
217
+ Console . WriteLine ( "Skipping generation for Linux due to missing headers." ) ;
218
+ }
207
219
}
208
220
}
209
221
}
0 commit comments