Make msbuild work on Arm-based Macs

This commit is contained in:
Michael B. Gale
2023-02-10 17:01:07 +00:00
parent 75c75ea49c
commit e28be5d98f
3 changed files with 52 additions and 7 deletions

View File

@@ -145,6 +145,14 @@ namespace Semmle.Autobuild.CSharp.Tests
bool IBuildActions.IsWindows() => IsWindows;
public bool IsMacOs { get; set; }
bool IBuildActions.IsMacOs() => IsMacOs;
public bool IsArm { get; set; }
bool IBuildActions.IsArm() => IsArm;
public string PathCombine(params string[] parts)
{
return string.Join(IsWindows ? '\\' : '/', parts.Where(p => !string.IsNullOrWhiteSpace(p)));