Enable C++11 for all ARM targets, not just beagle.
* Also clean up the flags definitions in the beagle target to avoid repeating the flags 3 times.
This commit is contained in:
parent
7a402b996e
commit
f66aa8595c
@ -45,6 +45,9 @@ rule ArchitectureSetup architecture
|
||||
if $(cpu) = arm {
|
||||
# For stackcrawls
|
||||
gccBaseFlags += -mapcs-frame ;
|
||||
|
||||
# C++11 is used to implement atomics.
|
||||
HAIKU_C++FLAGS_$(architecture) += -std=c++11 ;
|
||||
}
|
||||
|
||||
# activating graphite optimizations
|
||||
|
@ -62,17 +62,11 @@ HAIKU_BOARD_SDIMAGE_FILES =
|
||||
|
||||
#
|
||||
# gcc flags for the specific cpu
|
||||
#
|
||||
|
||||
HAIKU_ASFLAGS_$(HAIKU_PACKAGING_ARCH)
|
||||
+= -mcpu=cortex-a8 -mfpu=vfpv3 -mfloat-abi=hard
|
||||
-DHAIKU_BOARD_LOADER_STACK_BASE=$(HAIKU_BOARD_LOADER_STACK_BASE)
|
||||
-DHAIKU_BOARD_LOADER_UIBASE=$(HAIKU_BOARD_LOADER_UIBASE) ;
|
||||
HAIKU_CCFLAGS_$(HAIKU_PACKAGING_ARCH)
|
||||
+= -mcpu=cortex-a8 -mfpu=vfpv3 -mfloat-abi=hard
|
||||
-DHAIKU_BOARD_LOADER_STACK_BASE=$(HAIKU_BOARD_LOADER_STACK_BASE)
|
||||
-DHAIKU_BOARD_LOADER_UIBASE=$(HAIKU_BOARD_LOADER_UIBASE) ;
|
||||
HAIKU_C++FLAGS_$(HAIKU_PACKAGING_ARCH)
|
||||
+= -mcpu=cortex-a8 -mfpu=vfpv3 -mfloat-abi=hard -std=c++11
|
||||
local flags = -mcpu=cortex-a8 -mfpu=vfpv3 -mfloat-abi=hard
|
||||
-DHAIKU_BOARD_LOADER_STACK_BASE=$(HAIKU_BOARD_LOADER_STACK_BASE)
|
||||
-DHAIKU_BOARD_LOADER_UIBASE=$(HAIKU_BOARD_LOADER_UIBASE) ;
|
||||
|
||||
HAIKU_ASFLAGS_$(HAIKU_PACKAGING_ARCH) += $(flags) ;
|
||||
HAIKU_CCFLAGS_$(HAIKU_PACKAGING_ARCH) += $(flags) ;
|
||||
HAIKU_C++FLAGS_$(HAIKU_PACKAGING_ARCH) += $(flags) ;
|
||||
|
Loading…
x
Reference in New Issue
Block a user