Fix PATH not append to env on windows. 11/22311/5
authorRicky He <timemanager.rick@gmail.com>
Mon, 4 Sep 2017 08:26:42 +0000 (01:26 -0700)
committerMats Wichmann <mats@linux.com>
Mon, 11 Jun 2018 13:13:34 +0000 (13:13 +0000)
Change-Id: I26688494a209cbc320fbb79eb18a957ec3ce8999
Signed-off-by: Ricky He <timemanager.rick@gmail.com>
build_common/SConscript

index 8542dfc..d20b1dd 100644 (file)
@@ -379,7 +379,7 @@ if env['CONFIG_ENVIRONMENT_IMPORT']:
     if os.environ['LDFLAGS'] != None:
         env.AppendUnique(LINKFLAGS=Split(os.environ['LDFLAGS']))
 
-if target_os in ['windows']:
+if host in ['windows']:
     # UnpackAll.py needs access to system PATH components that SCons
     # does not include by default - e.g., the path to 7z.exe.
     env.AppendUnique(PATH=os.environ['PATH'])