From a5ca573d2783b7e63507a4561d1f789f50776908 Mon Sep 17 00:00:00 2001 From: Augustin Cavalier Date: Sat, 28 Mar 2020 14:27:04 -0400 Subject: [PATCH] ArchitectureRules: Add -fno-semantic-interposition to kernel rules. Should constitute a minor performance gain, with no functional change (the kernel ELF loader does not do any semantic interposition; or any interposition for that matter.) --- build/jam/ArchitectureRules | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/build/jam/ArchitectureRules b/build/jam/ArchitectureRules index b1343efb26..dc42141e4a 100644 --- a/build/jam/ArchitectureRules +++ b/build/jam/ArchitectureRules @@ -368,6 +368,11 @@ rule KernelArchitectureSetup architecture local ccBaseFlags = -finline -fno-builtin ; if $(gccVersion[1]) >= 4 { + if $(HAIKU_CC_IS_CLANG_$(architecture)) != 1 { + # Clang does not yet understand this flag. + ccBaseFlags += -fno-semantic-interposition ; + } + ccBaseFlags += -ffreestanding ; }