Browse Source

Merge pull request #4077 from XiWeiGu/loongarch64_abi

LoongArch64: Add ABI detection for loongarch64
tags/v0.3.24
Martin Kroeker GitHub 2 years ago
parent
commit
5759f905f2
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 2 deletions
  1. +6
    -2
      Makefile.system

+ 6
- 2
Makefile.system View File

@@ -932,8 +932,12 @@ BINARY_DEFINED = 1
endif

ifeq ($(ARCH), loongarch64)
CCOMMON_OPT += -march=loongarch64 -mabi=lp64
FCOMMON_OPT += -march=loongarch64 -mabi=lp64
LA64_ABI=$(shell $(CC) -mabi=lp64d -c $(TOPDIR)/cpuid_loongarch64.c -o /dev/null > /dev/null 2> /dev/null && echo lp64d)
ifneq ($(LA64_ABI), lp64d)
LA64_ABI=lp64
endif
CCOMMON_OPT += -march=loongarch64 -mabi=$(LA64_ABI)
FCOMMON_OPT += -march=loongarch64 -mabi=$(LA64_ABI)
endif

endif


Loading…
Cancel
Save