mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-19 02:54:24 +00:00
Use clang assembler when clang compiler is used
Change-Id: Ib90b767e46360ef07c1f22526e3f3eb5fe366d5d Signed-off-by: Roberto Vargas <roberto.vargas@arm.com>
This commit is contained in:
parent
9fdad69909
commit
1684b8733d
1 changed files with 9 additions and 1 deletions
8
Makefile
8
Makefile
|
@ -85,7 +85,13 @@ $(eval $(call add_define,DEBUG))
|
|||
ifneq (${DEBUG}, 0)
|
||||
BUILD_TYPE := debug
|
||||
TF_CFLAGS += -g
|
||||
|
||||
ifneq ($(findstring clang,$(notdir $(CC))),)
|
||||
ASFLAGS += -g
|
||||
else
|
||||
ASFLAGS += -g -Wa,--gdwarf-2
|
||||
endif
|
||||
|
||||
# Use LOG_LEVEL_INFO by default for debug builds
|
||||
LOG_LEVEL := 40
|
||||
else
|
||||
|
@ -144,10 +150,12 @@ ifeq ($(notdir $(CC)),armclang)
|
|||
TF_CFLAGS_aarch32 = -target arm-arm-none-eabi $(march32-directive)
|
||||
TF_CFLAGS_aarch64 = -target aarch64-arm-none-eabi -march=armv8-a
|
||||
LD = $(LINKER)
|
||||
AS = $(CC) -c -x assembler-with-cpp $(TF_CFLAGS_$(ARCH))
|
||||
else ifneq ($(findstring clang,$(notdir $(CC))),)
|
||||
TF_CFLAGS_aarch32 = $(target32-directive)
|
||||
TF_CFLAGS_aarch64 = -target aarch64-elf
|
||||
LD = $(LINKER)
|
||||
AS = $(CC) -c -x assembler-with-cpp $(TF_CFLAGS_$(ARCH))
|
||||
else
|
||||
TF_CFLAGS_aarch32 = $(march32-directive)
|
||||
TF_CFLAGS_aarch64 = -march=armv8-a
|
||||
|
|
Loading…
Add table
Reference in a new issue