From d0bfb2c0442473a82a2034b99e8668ac71dc7783 Mon Sep 17 00:00:00 2001 From: Augustin Cavalier Date: Sat, 11 Aug 2018 15:26:54 -0400 Subject: [PATCH] ArchitectureRules: Append Clang flags before potential early-exit. Gets the Clang-ARM build a bit further into libroot. --- build/jam/ArchitectureRules | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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 ;