File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change 55using System . IO ;
66using System . Linq ;
77using System . Reflection ;
8+ using System . Runtime . InteropServices ;
89using System . Text . RegularExpressions ;
910using LanguageVersion = CppSharp . Parser . LanguageVersion ;
1011
@@ -149,9 +150,12 @@ public void SetupMSVC(VisualStudioVersion vsVersion)
149150
150151 AddSystemIncludeDirs ( BuiltinsDir ) ;
151152
152- vsVersion = MSVCToolchain . FindVSVersion ( vsVersion ) ;
153- foreach ( var include in MSVCToolchain . GetSystemIncludes ( vsVersion ) )
154- AddSystemIncludeDirs ( include ) ;
153+ if ( RuntimeInformation . IsOSPlatform ( OSPlatform . Windows ) )
154+ {
155+ vsVersion = MSVCToolchain . FindVSVersion ( vsVersion ) ;
156+ foreach ( var include in MSVCToolchain . GetSystemIncludes ( vsVersion ) )
157+ AddSystemIncludeDirs ( include ) ;
158+ }
155159 }
156160
157161 // do not remove the CppSharp prefix becase the Mono C# compiler breaks
You can’t perform that action at this time.
0 commit comments