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 5
5
using System . IO ;
6
6
using System . Linq ;
7
7
using System . Reflection ;
8
+ using System . Runtime . InteropServices ;
8
9
using System . Text . RegularExpressions ;
9
10
using LanguageVersion = CppSharp . Parser . LanguageVersion ;
10
11
@@ -149,9 +150,12 @@ public void SetupMSVC(VisualStudioVersion vsVersion)
149
150
150
151
AddSystemIncludeDirs ( BuiltinsDir ) ;
151
152
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
+ }
155
159
}
156
160
157
161
// do not remove the CppSharp prefix becase the Mono C# compiler breaks
You can’t perform that action at this time.
0 commit comments