From df8cf532fb8f77947664b95901122b8b47fe562b Mon Sep 17 00:00:00 2001 From: Bob Arnson Date: Sun, 17 May 2020 17:30:46 -0400 Subject: Add missing ARM64 cases & random fixes. --- src/WixToolset.Core/Compiler.cs | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) (limited to 'src/WixToolset.Core/Compiler.cs') diff --git a/src/WixToolset.Core/Compiler.cs b/src/WixToolset.Core/Compiler.cs index d4ad3279..32e9b9d6 100644 --- a/src/WixToolset.Core/Compiler.cs +++ b/src/WixToolset.Core/Compiler.cs @@ -78,6 +78,12 @@ namespace WixToolset.Core /// The platform which the compiler will use when defaulting 64-bit attributes and elements. public Platform CurrentPlatform => this.Context.Platform; + /// + /// Gets or sets the platform which the compiler will use when defaulting 64-bit attributes and elements. + /// + /// The platform which the compiler will use when defaulting 64-bit attributes and elements. + public bool IsCurrentPlatform64Bit => this.Context.Platform == Platform.ARM64 || this.Context.Platform == Platform.IA64 || this.Context.Platform == Platform.X64; + /// /// Gets or sets the option to show pedantic messages. /// @@ -1777,7 +1783,7 @@ namespace WixToolset.Core } } - if (!explicitWin64 && (Platform.IA64 == this.CurrentPlatform || Platform.X64 == this.CurrentPlatform)) + if (!explicitWin64 && this.IsCurrentPlatform64Bit) { search64bit = true; } @@ -2250,7 +2256,7 @@ namespace WixToolset.Core } } - if (!explicitWin64 && (Platform.IA64 == this.CurrentPlatform || Platform.X64 == this.CurrentPlatform)) + if (!explicitWin64 && this.IsCurrentPlatform64Bit) { //bits |= MsiInterop.MsidbComponentAttributes64bit; win64 = true; @@ -3405,7 +3411,7 @@ namespace WixToolset.Core id = Identifier.Invalid; } - if (!explicitWin64 && (CustomActionTargetType.VBScript == targetType || CustomActionTargetType.JScript == targetType) && (Platform.IA64 == this.CurrentPlatform || Platform.X64 == this.CurrentPlatform)) + if (!explicitWin64 && this.IsCurrentPlatform64Bit && (CustomActionTargetType.VBScript == targetType || CustomActionTargetType.JScript == targetType)) { win64 = true; } @@ -5510,6 +5516,12 @@ namespace WixToolset.Core case "ia64": procArch = "ia64"; break; + case "arm": + procArch = "arm"; + break; + case "arm64": + procArch = "arm64"; + break; case "": break; default: -- cgit v1.2.3-55-g6feb