Skip to content

Commit

Permalink
[loong64] Ignore relaxations
Browse files Browse the repository at this point in the history
Signed-off-by: Xiaotian Wu <[email protected]>
  • Loading branch information
yetist committed Mar 1, 2024
1 parent 7cd7388 commit 772ad25
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/arch/loong64/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ ifeq ($(CCTYPE),gcc)
MNER_TEST = $(CC) -mno-explicit-relocs -x c -c /dev/null -o /dev/null >/dev/null 2>&1
MNER_FLAGS := $(shell $(MNER_TEST) && $(ECHO) '-mno-explicit-relocs')
WORKAROUND_CFLAGS += $(MNER_FLAGS)

# Check if -mno-relax is valid
MNRX_TEST = $(CC) -mno-relax -x c -c /dev/null -o /dev/null >/dev/null 2>&1
MNRX_FLAGS := $(shell $(MNRX_TEST) && $(ECHO) '-mno-relax' || $(ECHO) '-Wa,-mno-relax' )
WORKAROUND_CFLAGS += $(MNRX_FLAGS)
endif

# EFI requires -fshort-wchar, and nothing else currently uses wchar_t
Expand Down

0 comments on commit 772ad25

Please sign in to comment.