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.)
This commit is contained in:
@@ -368,6 +368,11 @@ rule KernelArchitectureSetup architecture
|
|||||||
local ccBaseFlags = -finline -fno-builtin ;
|
local ccBaseFlags = -finline -fno-builtin ;
|
||||||
|
|
||||||
if $(gccVersion[1]) >= 4 {
|
if $(gccVersion[1]) >= 4 {
|
||||||
|
if $(HAIKU_CC_IS_CLANG_$(architecture)) != 1 {
|
||||||
|
# Clang does not yet understand this flag.
|
||||||
|
ccBaseFlags += -fno-semantic-interposition ;
|
||||||
|
}
|
||||||
|
|
||||||
ccBaseFlags += -ffreestanding ;
|
ccBaseFlags += -ffreestanding ;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user