ARM: only enable C++11 for libroot, not globally
This resembles the x86_64 build, and fixes the compilation issues with the bootloader stdio.h header. Fixes #11144
This commit is contained in:
@@ -45,9 +45,6 @@ rule ArchitectureSetup architecture
|
|||||||
if $(cpu) = arm {
|
if $(cpu) = arm {
|
||||||
# For stackcrawls
|
# For stackcrawls
|
||||||
gccBaseFlags += -mapcs-frame ;
|
gccBaseFlags += -mapcs-frame ;
|
||||||
|
|
||||||
# C++11 is used to implement atomics.
|
|
||||||
HAIKU_C++FLAGS_$(architecture) += -std=c++11 ;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# activating graphite optimizations
|
# activating graphite optimizations
|
||||||
|
|||||||
@@ -1,5 +1,7 @@
|
|||||||
SubDir HAIKU_TOP src system libroot os arch arm ;
|
SubDir HAIKU_TOP src system libroot os arch arm ;
|
||||||
|
|
||||||
|
SubDirC++Flags -std=gnu++11 ;
|
||||||
|
|
||||||
local architectureObject ;
|
local architectureObject ;
|
||||||
for architectureObject in [ MultiArchSubDirSetup arm ] {
|
for architectureObject in [ MultiArchSubDirSetup arm ] {
|
||||||
on $(architectureObject) {
|
on $(architectureObject) {
|
||||||
|
|||||||
Reference in New Issue
Block a user