diff options
| author | Bob Arnson <bob@firegiant.com> | 2020-05-17 17:30:46 -0400 |
|---|---|---|
| committer | Bob Arnson <bob@firegiant.com> | 2020-05-17 17:38:40 -0400 |
| commit | df8cf532fb8f77947664b95901122b8b47fe562b (patch) | |
| tree | e88c8e836c8f215fa2bd67760a2c0ab91e12aff8 /src/WixToolset.Core/Compiler.cs | |
| parent | ad9cdd7dc6faee762e06a8d3446fa68c74dd802d (diff) | |
| download | wix-df8cf532fb8f77947664b95901122b8b47fe562b.tar.gz wix-df8cf532fb8f77947664b95901122b8b47fe562b.tar.bz2 wix-df8cf532fb8f77947664b95901122b8b47fe562b.zip | |
Add missing ARM64 cases & random fixes.
Diffstat (limited to 'src/WixToolset.Core/Compiler.cs')
| -rw-r--r-- | src/WixToolset.Core/Compiler.cs | 18 |
1 files changed, 15 insertions, 3 deletions
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 | |||
| @@ -79,6 +79,12 @@ namespace WixToolset.Core | |||
| 79 | public Platform CurrentPlatform => this.Context.Platform; | 79 | public Platform CurrentPlatform => this.Context.Platform; |
| 80 | 80 | ||
| 81 | /// <summary> | 81 | /// <summary> |
| 82 | /// Gets or sets the platform which the compiler will use when defaulting 64-bit attributes and elements. | ||
| 83 | /// </summary> | ||
| 84 | /// <value>The platform which the compiler will use when defaulting 64-bit attributes and elements.</value> | ||
| 85 | public bool IsCurrentPlatform64Bit => this.Context.Platform == Platform.ARM64 || this.Context.Platform == Platform.IA64 || this.Context.Platform == Platform.X64; | ||
| 86 | |||
| 87 | /// <summary> | ||
| 82 | /// Gets or sets the option to show pedantic messages. | 88 | /// Gets or sets the option to show pedantic messages. |
| 83 | /// </summary> | 89 | /// </summary> |
| 84 | /// <value>The option to show pedantic messages.</value> | 90 | /// <value>The option to show pedantic messages.</value> |
| @@ -1777,7 +1783,7 @@ namespace WixToolset.Core | |||
| 1777 | } | 1783 | } |
| 1778 | } | 1784 | } |
| 1779 | 1785 | ||
| 1780 | if (!explicitWin64 && (Platform.IA64 == this.CurrentPlatform || Platform.X64 == this.CurrentPlatform)) | 1786 | if (!explicitWin64 && this.IsCurrentPlatform64Bit) |
| 1781 | { | 1787 | { |
| 1782 | search64bit = true; | 1788 | search64bit = true; |
| 1783 | } | 1789 | } |
| @@ -2250,7 +2256,7 @@ namespace WixToolset.Core | |||
| 2250 | } | 2256 | } |
| 2251 | } | 2257 | } |
| 2252 | 2258 | ||
| 2253 | if (!explicitWin64 && (Platform.IA64 == this.CurrentPlatform || Platform.X64 == this.CurrentPlatform)) | 2259 | if (!explicitWin64 && this.IsCurrentPlatform64Bit) |
| 2254 | { | 2260 | { |
| 2255 | //bits |= MsiInterop.MsidbComponentAttributes64bit; | 2261 | //bits |= MsiInterop.MsidbComponentAttributes64bit; |
| 2256 | win64 = true; | 2262 | win64 = true; |
| @@ -3405,7 +3411,7 @@ namespace WixToolset.Core | |||
| 3405 | id = Identifier.Invalid; | 3411 | id = Identifier.Invalid; |
| 3406 | } | 3412 | } |
| 3407 | 3413 | ||
| 3408 | if (!explicitWin64 && (CustomActionTargetType.VBScript == targetType || CustomActionTargetType.JScript == targetType) && (Platform.IA64 == this.CurrentPlatform || Platform.X64 == this.CurrentPlatform)) | 3414 | if (!explicitWin64 && this.IsCurrentPlatform64Bit && (CustomActionTargetType.VBScript == targetType || CustomActionTargetType.JScript == targetType)) |
| 3409 | { | 3415 | { |
| 3410 | win64 = true; | 3416 | win64 = true; |
| 3411 | } | 3417 | } |
| @@ -5510,6 +5516,12 @@ namespace WixToolset.Core | |||
| 5510 | case "ia64": | 5516 | case "ia64": |
| 5511 | procArch = "ia64"; | 5517 | procArch = "ia64"; |
| 5512 | break; | 5518 | break; |
| 5519 | case "arm": | ||
| 5520 | procArch = "arm"; | ||
| 5521 | break; | ||
| 5522 | case "arm64": | ||
| 5523 | procArch = "arm64"; | ||
| 5524 | break; | ||
| 5513 | case "": | 5525 | case "": |
| 5514 | break; | 5526 | break; |
| 5515 | default: | 5527 | default: |
