mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-02-24 00:24:38 +00:00
Make kernel build with clang.
It's a bit faster than g++ and seems to generate perfectly fine code. The kernel is also roughly 10% smaller(!)
This commit is contained in:
@@ -3,6 +3,8 @@
|
||||
#include "kmalloc.h"
|
||||
#include <AK/Types.h>
|
||||
|
||||
extern "C" {
|
||||
|
||||
void memcpy(void *dest, const void *src, DWORD n)
|
||||
{
|
||||
BYTE* bdest = (BYTE*)dest;
|
||||
@@ -71,8 +73,10 @@ int memcmp(const void* v1, const void* v2, size_t n)
|
||||
return 0;
|
||||
}
|
||||
|
||||
extern "C" void __cxa_pure_virtual() NORETURN;
|
||||
extern "C" void __cxa_pure_virtual()
|
||||
void __cxa_pure_virtual() NORETURN;
|
||||
void __cxa_pure_virtual()
|
||||
{
|
||||
ASSERT_NOT_REACHED();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user