[GN] Locate prebuilt binaries correctly.
authorMitch Phillips <mitchphillips@outlook.com>
Thu, 7 Mar 2019 22:20:36 +0000 (22:20 +0000)
committerMitch Phillips <mitchphillips@outlook.com>
Thu, 7 Mar 2019 22:20:36 +0000 (22:20 +0000)
commitc90886b906febb0d02a5c7d4720001d4085a7c0a
treef1224136a3b5a28165c76aebfa2de275c106cd3f
parentc525b36b434b61f863a0299e48fd8b6cecc691eb
[GN] Locate prebuilt binaries correctly.

Use the system shell to see if we can find a 'gn' binary on $PATH. This solves the error wherein subprocess.call fails ungracefully if the binary doesn't exist.

llvm-svn: 355645
llvm/utils/gn/gn.py