Merge pull request #1718 from vwadekar/cc-variable-findstring

build: find "armclang" string in the 'CC' variable
This commit is contained in:
Antonio Niño Díaz 2018-12-18 11:55:45 +01:00 committed by GitHub
commit 08fd68a27d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -154,7 +154,7 @@ target32-directive = -target armv8a-none-eabi
march32-directive = -march=armv8-a
endif
ifeq ($(notdir $(CC)),armclang)
ifneq ($(findstring armclang,$(notdir $(CC))),)
TF_CFLAGS_aarch32 = -target arm-arm-none-eabi $(march32-directive)
TF_CFLAGS_aarch64 = -target aarch64-arm-none-eabi -march=armv8-a
LD = $(LINKER)