REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2221
The command used by multiple thread genffs feature in makefile
for testing if file exist is generated based on the toolchain family.
It should be based on the OS type.
Cc: Liming Gao <liming.gao@intel.com>
Signed-off-by: Bob Feng <bob.c.feng@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
from __future__ import absolute_import\r
\r
import Common.LongFilePathOs as os\r
+import sys\r
from sys import stdout\r
from subprocess import PIPE,Popen\r
from struct import Struct\r
\r
SaveFileOnChange(CommandFile, ' '.join(Cmd), False)\r
if IsMakefile:\r
- if GlobalData.gGlobalDefines.get("FAMILY") == "MSFT":\r
+ if sys.platform == "win32":\r
Cmd = ['if', 'exist', Input[0]] + Cmd\r
else:\r
Cmd = ['-test', '-e', Input[0], "&&"] + Cmd\r