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:
parent
ece3c314d2
commit
a5ca573d27
@ -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 ;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user