Don't define __ARM*__ for Clang

I have a patch for Clang ready that I will upstream instead.
This commit is contained in:
Jonathan Schleifer 2015-11-08 16:38:57 +01:00
parent f7ededa623
commit bfe60c1e5a
No known key found for this signature in database
GPG Key ID: 33E61C63EB4AE7B5
2 changed files with 1 additions and 7 deletions

View File

@ -43,10 +43,7 @@ rule ArchitectureSetup architecture
local cpu = $(HAIKU_CPU_$(architecture)) ;
if $(cpu) = arm {
if $(HAIKU_CC_IS_CLANG_$(architecture)) = 1 {
# Clang only defines __ARMEL__ when using -target arm-haiku-unknown
gccBaseFlags += -D__ARM__=1 ;
} else {
if $(HAIKU_CC_IS_CLANG_$(architecture)) != 1 {
# For stackcrawls - not supported by Clang
gccBaseFlags += -mapcs-frame ;
}

View File

@ -59,9 +59,6 @@ HAIKU_BOARD_SDIMAGE_SIZE = 128 ;
#
local flags = -march=armv7-a -mfloat-abi=hard ;
if $(HAIKU_CC_IS_CLANG_$(architecture)) = 1 {
flags += -D__ARM_ARCH__=7 ;
}
HAIKU_ASFLAGS_$(HAIKU_PACKAGING_ARCH) += $(flags) ;
HAIKU_CCFLAGS_$(HAIKU_PACKAGING_ARCH) += $(flags) ;