+ # check to see if host is configured\r
+ # HostType for VS2017 should be (defined in tools_def):\r
+ # x86 == 32bit Intel\r
+ # x64 == 64bit Intel\r
+ # arm == 32bit Arm\r
+ # arm64 == 64bit Arm\r
+ #\r
+ HostType = shell_environment.GetEnvironment().get_shell_var("VS2017_HOST")\r
+ if HostType is not None:\r
+ HostType = HostType.lower()\r
+ self.Logger.info(\r
+ f"HOST TYPE defined by environment. Host Type is {HostType}")\r
+ else:\r
+ HostInfo = GetHostInfo()\r
+ if HostInfo.arch == "x86":\r
+ if HostInfo.bit == "32":\r
+ HostType = "x86"\r
+ elif HostInfo.bit == "64":\r
+ HostType = "x64"\r
+ else:\r
+ raise NotImplementedError()\r
+\r
+ # VS2017_HOST options are not exactly the same as QueryVcVariables. This translates.\r
+ VC_HOST_ARCH_TRANSLATOR = {\r
+ "x86": "x86", "x64": "AMD64", "arm": "not supported", "arm64": "not supported"}\r
+\r