diff options
author | Abdoulaye Walsimou Gaye <awg@embtoolkit.org> | 2014-11-09 12:11:07 +0100 |
---|---|---|
committer | Abdoulaye Walsimou Gaye <awg@embtoolkit.org> | 2014-11-09 12:11:42 +0100 |
commit | 186998c6ab391c021afc91472358854a908e3ee8 (patch) | |
tree | 641b0670be70e861b6b7ba155a8ae9b8d2c637bd /core | |
parent | b8cda2feb27083c1ee7b15d1f1664d0176fbf065 (diff) | |
download | embtoolkit-186998c6ab391c021afc91472358854a908e3ee8.tar.gz embtoolkit-186998c6ab391c021afc91472358854a908e3ee8.tar.bz2 embtoolkit-186998c6ab391c021afc91472358854a908e3ee8.tar.xz |
Build system: improve macro generating cross compiler version
Signed-off-by: Abdoulaye Walsimou Gaye <awg@embtoolkit.org>
Diffstat (limited to 'core')
-rw-r--r-- | core/mk/pkg-macros/vars.mk | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/mk/pkg-macros/vars.mk b/core/mk/pkg-macros/vars.mk index 1c5fa2d..cc39d16 100644 --- a/core/mk/pkg-macros/vars.mk +++ b/core/mk/pkg-macros/vars.mk @@ -34,9 +34,9 @@ embtk_toolchain_has_llvm-y := $(or $(CONFIG_EMBTK_GCC_AND_LLVM_TOOLCHAIN),$(embt # # Compilers helper macros/variables # -__embtk_clang-version = "`$(1) --version 2>/dev/null | sed -e '2,$$d' -e 's/\(.*\) \((.*)\) \((.*)\)/\1/'`" -__embtk_clang-git-version = "`$(1) --version 2>/dev/null | sed -e '2,$$d' -e 's/\(.*\) \((.*)\) \((.*)\) \((.*)\)/\1 \4/'`" -__embtk_gcc-version = "`$(1) --version 2>/dev/null | sed -e '2,$$d' -e 's/\(.*\)-gcc[[:space:]]\(.*\)/gcc \2/'`" +__embtk_clang-version = $$($(1) --version 2>/dev/null | sed -e '2,$$d' -e 's/\(.*\) \((.*)\) \((.*)\)/\1/') +__embtk_clang-git-version = $$($(1) --version 2>/dev/null | sed -e '2,$$d' -e 's/\(.*\) \((.*)\) \((.*)\) \((.*)\)/\1 \4/') +__embtk_gcc-version = $$($(1) --version 2>/dev/null | sed -e '2,$$d' -e 's/\(.*\)-gcc[[:space:]]\(.*\)/gcc \2/') __embtk_hostcc-version := $(shell $(HOSTCC) --version 2>/dev/null | sed -e '2,$$d') embtk_hostcc_clang-y := $(if $(findstring clang,$(__embtk_hostcc-version)),y) |