mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-06 11:09:05 +03:00
AK: Fix problem when building i686-pc-serenity toolchain from scratch.
This commit is contained in:
parent
dd966c03c9
commit
9de7a0daaf
Notes:
sideshowbarker
2024-07-19 14:49:03 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/9de7a0daaf3
@ -1,9 +1,5 @@
|
||||
#pragma once
|
||||
|
||||
#ifndef KERNEL
|
||||
#include <new>
|
||||
#endif
|
||||
|
||||
#if defined(SERENITY) && defined(KERNEL)
|
||||
#define AK_MAKE_ETERNAL \
|
||||
public: \
|
||||
@ -48,4 +44,9 @@ inline void operator delete[](void* ptr)
|
||||
return kfree(ptr);
|
||||
}
|
||||
|
||||
inline void* operator new(size_t, void* ptr)
|
||||
{
|
||||
return ptr;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
@ -65,7 +65,7 @@ AS = i686-pc-serenity-as
|
||||
all: $(LIBRARY) startfiles
|
||||
|
||||
startfiles:
|
||||
@echo "CXX $<"; $(CXX) $(CXXFLAGS) -o crt0.o -c crt0.cpp
|
||||
@echo "CXX crt0.o"; $(CXX) $(CXXFLAGS) -o crt0.o -c crt0.cpp
|
||||
cp crti.ao crti.o
|
||||
cp crtn.ao crtn.o
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user