File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -252,17 +252,17 @@ public void SetupLinux(string headersPath="")
252
252
string compiler , longVersion , shortVersion ;
253
253
GetUnixCompilerInfo ( out compiler , out longVersion , out shortVersion ) ;
254
254
string [ ] versions = { longVersion , shortVersion } ;
255
- AddSystemIncludeDirs ( $ " { headersPath } /usr/include" ) ;
255
+ string [ ] tripples = { "x86_64-linux-gnu" , "x86_64-pc-linux-gnu" } ;
256
256
if ( compiler == "gcc" )
257
257
{
258
258
foreach ( var version in versions )
259
259
{
260
260
AddSystemIncludeDirs ( $ "{ headersPath } /usr/include/c++/{ version } ") ;
261
- AddSystemIncludeDirs ( $ "{ headersPath } /usr/include/x86_64-linux-gnu/c++/{ version } ") ;
262
261
AddSystemIncludeDirs ( $ "{ headersPath } /usr/include/c++/{ version } /backward") ;
262
+ foreach ( var tripple in tripples )
263
+ AddSystemIncludeDirs ( $ "{ headersPath } /usr/include/c++/{ version } /{ tripple } ") ;
263
264
}
264
265
}
265
- string [ ] tripples = { "x86_64-linux-gnu" , "x86_64-pc-linux-gnu" } ;
266
266
foreach ( var tripple in tripples )
267
267
{
268
268
foreach ( var version in versions )
@@ -273,6 +273,7 @@ public void SetupLinux(string headersPath="")
273
273
}
274
274
AddSystemIncludeDirs ( $ "{ headersPath } /usr/include/{ tripple } ") ;
275
275
}
276
+ AddSystemIncludeDirs ( $ "{ headersPath } /usr/include") ;
276
277
}
277
278
278
279
public void Setup ( )
You can’t perform that action at this time.
0 commit comments