mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-27 15:24:54 +00:00
Use clang as preprocessor when clang toolchain is selected
Change-Id: I562c5de91e12fe384245df41225dfb9122a13a85 Signed-off-by: Roberto Vargas <roberto.vargas@arm.com>
This commit is contained in:
parent
1684b8733d
commit
7040155e58
1 changed files with 4 additions and 0 deletions
4
Makefile
4
Makefile
|
@ -151,11 +151,15 @@ TF_CFLAGS_aarch32 = -target arm-arm-none-eabi $(march32-directive)
|
||||||
TF_CFLAGS_aarch64 = -target aarch64-arm-none-eabi -march=armv8-a
|
TF_CFLAGS_aarch64 = -target aarch64-arm-none-eabi -march=armv8-a
|
||||||
LD = $(LINKER)
|
LD = $(LINKER)
|
||||||
AS = $(CC) -c -x assembler-with-cpp $(TF_CFLAGS_$(ARCH))
|
AS = $(CC) -c -x assembler-with-cpp $(TF_CFLAGS_$(ARCH))
|
||||||
|
CPP = $(CC) -E $(TF_CFLAGS_$(ARCH))
|
||||||
|
PP = $(CC) -E $(TF_CFLAGS_$(ARCH))
|
||||||
else ifneq ($(findstring clang,$(notdir $(CC))),)
|
else ifneq ($(findstring clang,$(notdir $(CC))),)
|
||||||
TF_CFLAGS_aarch32 = $(target32-directive)
|
TF_CFLAGS_aarch32 = $(target32-directive)
|
||||||
TF_CFLAGS_aarch64 = -target aarch64-elf
|
TF_CFLAGS_aarch64 = -target aarch64-elf
|
||||||
LD = $(LINKER)
|
LD = $(LINKER)
|
||||||
AS = $(CC) -c -x assembler-with-cpp $(TF_CFLAGS_$(ARCH))
|
AS = $(CC) -c -x assembler-with-cpp $(TF_CFLAGS_$(ARCH))
|
||||||
|
CPP = $(CC) -E
|
||||||
|
PP = $(CC) -E
|
||||||
else
|
else
|
||||||
TF_CFLAGS_aarch32 = $(march32-directive)
|
TF_CFLAGS_aarch32 = $(march32-directive)
|
||||||
TF_CFLAGS_aarch64 = -march=armv8-a
|
TF_CFLAGS_aarch64 = -march=armv8-a
|
||||||
|
|
Loading…
Add table
Reference in a new issue