Add sys.BUILDARCHSHORT preprocessor variable.
Bob Arnson committed
Feb 16, 2023 at 20:59 UTC
7693f0e773154e963557ab4f2cd71e5250f8563d
1 file changed
+16
src/wix/WixToolset.Core/ExtensibilityServices/PreprocessHelper.cs
+16
@@ -245,6 +245,22 @@ namespace WixToolset.Core.ExtensibilityServices
245
throw new ArgumentException("Unknown platform enumeration '{0}' encountered.", context.Platform.ToString());
246
}
247
248
+ case "BUILDARCHSHORT":
249
+ switch (context.Platform)
250
+ {
251
+ case Platform.X86:
252
+ return "X86";
253
+
254
+ case Platform.X64:
255
+ return "X64";
256
+
257
+ case Platform.ARM64:
258
+ return "A64";
259
+
260
+ default:
261
+ throw new ArgumentException("Unknown platform enumeration '{0}' encountered.", context.Platform.ToString());
262
+ }
263
+
264
case "WIXMAJORVERSION":
265
return ThisAssembly.Git.BaseVersion.Major;
266