mirror of
https://github.com/mirror/tinycc.git
synced 2024-12-28 04:00:06 +08:00
Enable arm hardfloat calling convention
Use arm hardfloat calling convention when the system is using it (detected by searching for hardfloat multiarch directory).
This commit is contained in:
parent
fad68c9163
commit
034dce4f04
10
Makefile
10
Makefile
@ -57,12 +57,12 @@ ifeq ($(ARCH),arm)
|
||||
NATIVE_DEFINES=-DTCC_TARGET_ARM
|
||||
NATIVE_DEFINES+=-DWITHOUT_LIBTCC
|
||||
NATIVE_DEFINES+=$(if $(wildcard /lib/ld-linux.so.3),-DTCC_ARM_EABI)
|
||||
NATIVE_DEFINES+=$(if $(wildcard /lib/arm-linux-gnueabi),-DCONFIG_MULTIARCHDIR=\"arm-linux-gnueabi\")
|
||||
ifneq (,$(wildcard /lib/arm-linux-gnueabi))
|
||||
NATIVE_DEFINES+=-DCONFIG_MULTIARCHDIR=\"arm-linux-gnueabi\"
|
||||
else
|
||||
NATIVE_DEFINES+=$(if $(wildcard /lib/arm-linux-gnueabihf),-DCONFIG_MULTIARCHDIR=\"arm-linux-gnueabihf\" -DTCC_ARM_HARDFLOAT)
|
||||
endif
|
||||
NATIVE_DEFINES+=$(if $(shell grep -l "^Features.* \(vfp\|iwmmxt\) " /proc/cpuinfo),-DTCC_ARM_VFP)
|
||||
# To use ARM hardfloat calling convension, uncomment the next 2 lines
|
||||
# Beware: only -run and -c work so far, linking is not yet supported
|
||||
#NATIVE_DEFINES+=-DTCC_ARM_HARDFLOAT
|
||||
#NATIVE_DEFINES+=$(if $(wildcard /lib/arm-linux-gnueabihf),-DCONFIG_MULTIARCHDIR=\"arm-linux-gnueabihf\")
|
||||
endif
|
||||
|
||||
ifdef CONFIG_WIN32
|
||||
|
Loading…
Reference in New Issue
Block a user