Delphiでコンパイルしたときにエラーが発生しました。
IDEからでなく、コマンドラインからMSBuildを実行しても、同じエラーが発生するようです。
[Error エラー] Invalid PLATFORM variable “MCD”. PLATFORM must be one of the following: “Win32”, “Win64”, “Android”, “iOSSimulator”, “iOSDevice32” “iOSDevice64”, or “OSX32”. If PLATFORM is defined by your system’s environment, it must be overridden in the RAD Studio IDE or passed explicitly on the command line to MSBuild; e.g., /p:Platform=Win32.
原因は、環境変数に「Platform」が設定されているため。
HP社のパソコンでは、はじめから環境変数が設定されているらしいです。
対策は、環境変数の「Platform」を削除します。