diff options
author | Ricardo Salveti <ricardo.salveti@linaro.org> | 2016-07-26 14:11:48 -0300 |
---|---|---|
committer | Ricardo Salveti <ricardo.salveti@linaro.org> | 2016-07-26 15:38:57 -0300 |
commit | b0f76ad6fb9ff068754f12acc3a331669ce4f5c0 (patch) | |
tree | d91f1c03d241bbad639ea5c5a1cedecba8451838 /mk/toolchain | |
parent | 776aee4547a9a43a11b4fa8f7b37aa1ed83a8554 (diff) |
Imported Upstream version 16.07-rc5
Change-Id: I1780a4c3b475eaf7e08e8ea67fba3a5257daa39c
Signed-off-by: Ricardo Salveti <ricardo.salveti@linaro.org>
Diffstat (limited to 'mk/toolchain')
-rw-r--r-- | mk/toolchain/clang/rte.toolchain-compat.mk | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/mk/toolchain/clang/rte.toolchain-compat.mk b/mk/toolchain/clang/rte.toolchain-compat.mk index f995b0b0..b734413b 100644 --- a/mk/toolchain/clang/rte.toolchain-compat.mk +++ b/mk/toolchain/clang/rte.toolchain-compat.mk @@ -38,6 +38,12 @@ # find out CLANG version -CLANG_MAJOR_VERSION = $(shell $(CC) -dumpversion | cut -f1 -d.) +CLANG_VERSION := $(shell $(CC) -v 2>&1 | grep version | sed "s/.*version \([0-9]*\.[0-9]*\).*/\1/") -CLANG_MINOR_VERSION = $(shell $(CC) -dumpversion | cut -f2 -d.) +CLANG_MAJOR_VERSION := $(shell echo $(CLANG_VERSION) | cut -f1 -d.) + +CLANG_MINOR_VERSION := $(shell echo $(CLANG_VERSION) | cut -f2 -d.) + +ifeq ($(shell test $(CLANG_MAJOR_VERSION)$(CLANG_MINOR_VERSION) -lt 35 && echo 1), 1) + CC_SUPPORTS_Z := false +endif |