mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-16 01:24:27 +00:00
Merge "fix(build): allow warnings when using lld" into integration
This commit is contained in:
commit
be2a050583
1 changed files with 5 additions and 3 deletions
8
Makefile
8
Makefile
|
@ -471,12 +471,14 @@ TF_LDFLAGS += $(subst --,-Xlinker --,$(TF_LDFLAGS_$(ARCH)))
|
|||
|
||||
# LD = gcc-ld (ld) or llvm-ld (ld.lld) or other
|
||||
else
|
||||
TF_LDFLAGS += --fatal-warnings -O1
|
||||
TF_LDFLAGS += -O1
|
||||
TF_LDFLAGS += --gc-sections
|
||||
# ld.lld doesn't recognize the errata flags,
|
||||
# therefore don't add those in that case
|
||||
# therefore don't add those in that case.
|
||||
# ld.lld reports section type mismatch warnings,
|
||||
# therefore don't add --fatal-warnings to it.
|
||||
ifeq ($(findstring ld.lld,$(notdir $(LD))),)
|
||||
TF_LDFLAGS += $(TF_LDFLAGS_$(ARCH))
|
||||
TF_LDFLAGS += $(TF_LDFLAGS_$(ARCH)) --fatal-warnings
|
||||
endif
|
||||
endif
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue