mirror of https://github.com/mono/CppSharp.git
5 changed files with 23 additions and 15 deletions
@ -0,0 +1,16 @@
@@ -0,0 +1,16 @@
|
||||
using System.Linq; |
||||
|
||||
namespace CppSharp.Parser |
||||
{ |
||||
// over time we should turn this into a real class
|
||||
// like http://llvm.org/docs/doxygen/html/classllvm_1_1Triple.html
|
||||
public static class TargetTriple |
||||
{ |
||||
public static bool IsWindows(string targetTriple) |
||||
{ |
||||
var parts = targetTriple.Split('-'); |
||||
return parts.Contains("windows") || |
||||
parts.Contains("win32") || parts.Contains("win64"); |
||||
} |
||||
} |
||||
} |
Loading…
Reference in new issue