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:
Augustin Cavalier 2020-03-28 14:27:04 -04:00
parent ece3c314d2
commit a5ca573d27

View File

@ -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 ;
}