Don't use -mapcs-frame with Clang

This commit is contained in:
Jonathan Schleifer 2015-11-07 18:02:06 +01:00
parent ad926b253a
commit 95fd629fa3
No known key found for this signature in database
GPG Key ID: 33E61C63EB4AE7B5
1 changed files with 7 additions and 2 deletions

View File

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