]> code.ossystems Code Review - openembedded-core.git/commit
lib/oe/utils.py: add get_host_compiler_version()
authorTim Orling <timothy.t.orling@linux.intel.com>
Tue, 31 Mar 2020 20:03:04 +0000 (13:03 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 1 Apr 2020 10:40:50 +0000 (11:40 +0100)
commit88712929354ff9c876bb1e48b6f15c33af5f2bbc
tree5d1e48d9ad420d92a6c4247f3578ea65ffb579cb
parent7a66434cf11b7f051699b774e4fccd6738351368
lib/oe/utils.py: add get_host_compiler_version()

Add helper function to get the host compiler and version.
Do not assume compiler is gcc.

NOTE: cannot set env to d.getVar("PATH") as that does not contain
the session PATH which was set by environment-setup-... which
breaks the install-buildtools use-case

Signed-off-by: Tim Orling <timothy.t.orling@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oe/utils.py