buildman: Try to avoid hard-coded string parsing
authorSimon Glass <sjg@chromium.org>
Tue, 2 Dec 2014 00:33:58 +0000 (17:33 -0700)
committerSimon Glass <sjg@chromium.org>
Thu, 15 Jan 2015 05:16:53 +0000 (21:16 -0800)
commitb53241230ddc4f007179b6b0659e0eb240f25400
treec9b8db365b4022ad143d0e1fe64f0af26df1f43d
parent5abab20dfb20406137e8b7d659aee3cf43dff351
buildman: Try to avoid hard-coded string parsing

The assumption that the compiler name will always end in gcc is incorrect
for clang and apparently on BSD.

Signed-off-by: Simon Glass <sjg@chromium.org>
tools/buildman/toolchain.py