Add support for the Xtensa toolchain

From (almost) all points of view, the Xtensa toolchain can be treated as
a regular GCC toolchain.

This patch adds very basic support so that, at least, meson does not
fail when trying to use "xt-xcc" (which makes it possible to use it
without problems).
pull/5265/head
Fernando Ramos 6 years ago committed by Jussi Pakkanen
parent 841995cddf
commit d81dfcba74
  1. 5
      docs/markdown/snippets/xtensa-toolchain.md
  2. 2
      mesonbuild/environment.py

@ -0,0 +1,5 @@
## Added basic support for the Xtensa CPU toolchain
You can now use `xt-xcc`, `xt-xc++`, `xt-nm`, etc... on your cross compilation
file and meson won't complain about an unknown toolchain.

@ -689,7 +689,7 @@ class Environment:
version = search_version(out)
guess_gcc_or_lcc = False
if 'Free Software Foundation' in out:
if 'Free Software Foundation' in out or 'xt-' in out:
guess_gcc_or_lcc = 'gcc'
if 'e2k' in out and 'lcc' in out:
guess_gcc_or_lcc = 'lcc'

Loading…
Cancel
Save