diff --git a/build/jam/ArchitectureRules b/build/jam/ArchitectureRules index 1f863f3ac9..2f9c2b23f3 100644 --- a/build/jam/ArchitectureRules +++ b/build/jam/ArchitectureRules @@ -460,6 +460,12 @@ rule ArchitectureSetupWarnings architecture # Sets up compiler warnings and error flags for various subdirectories for # the given packaging architecture. + if $(HAIKU_CC_IS_CLANG_$(architecture)) = 1 { + AppendToConfigVar CCFLAGS : + HAIKU_TOP src system libroot posix glibc : + -fgnu89-inline -fheinous-gnu-extensions : global ; + } + local cpu = $(HAIKU_CPU_$(architecture)) ; switch $(cpu) { case arm : @@ -494,12 +500,6 @@ rule ArchitectureSetupWarnings architecture WARNINGS on $(file) = $(WARNINGS) ; } - if $(HAIKU_CC_IS_CLANG_$(architecture)) = 1 { - AppendToConfigVar CCFLAGS : - HAIKU_TOP src system libroot posix glibc : - -fgnu89-inline -fheinous-gnu-extensions : global ; - } - EnableWerror src add-ons accelerants ; EnableWerror src add-ons bluetooth ; EnableWerror src add-ons decorators ;