Don't use -mapcs-frame with Clang
This commit is contained in:
@@ -43,8 +43,13 @@ rule ArchitectureSetup architecture
|
|||||||
|
|
||||||
local cpu = $(HAIKU_CPU_$(architecture)) ;
|
local cpu = $(HAIKU_CPU_$(architecture)) ;
|
||||||
if $(cpu) = arm {
|
if $(cpu) = arm {
|
||||||
# For stackcrawls
|
if $(HAIKU_CC_IS_CLANG_$(architecture)) = 1 {
|
||||||
gccBaseFlags += -mapcs-frame ;
|
# 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
|
# activating graphite optimizations
|
||||||
|
|||||||
Reference in New Issue
Block a user