mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-21 23:20:20 +00:00
Toolchain: Build demangling into LibC except during toolchain build
This commit is contained in:
parent
59c052a72a
commit
c4c1ad2289
Notes:
sideshowbarker
2024-07-19 09:11:03 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/c4c1ad22893
3 changed files with 4 additions and 4 deletions
|
@ -28,7 +28,7 @@
|
|||
|
||||
#include <AK/String.h>
|
||||
|
||||
#ifndef SERENITY_LIBC_BUILD
|
||||
#ifndef BUILDING_SERENITY_TOOLCHAIN
|
||||
#include <cxxabi.h>
|
||||
#endif
|
||||
|
||||
|
@ -36,7 +36,7 @@ namespace AK {
|
|||
|
||||
inline String demangle(const StringView& name)
|
||||
{
|
||||
#ifdef SERENITY_LIBC_BUILD
|
||||
#ifdef BUILDING_SERENITY_TOOLCHAIN
|
||||
return name;
|
||||
#else
|
||||
int status = 0;
|
||||
|
|
|
@ -81,7 +81,7 @@ crtn.o: crtin.ao
|
|||
|
||||
EXTRA_CLEAN = crt0.d crt0.o
|
||||
|
||||
DEFINES = -DSERENITY_LIBC_BUILD
|
||||
DEFINES = -DSERENITY_LIBC_BUILD $(EXTRA_LIBC_DEFINES)
|
||||
|
||||
LIBRARY = libc.a
|
||||
|
||||
|
|
|
@ -148,7 +148,7 @@ pushd "$DIR/Build/"
|
|||
"$MAKE" install-gcc install-target-libgcc || exit 1
|
||||
|
||||
echo "XXX serenity libc and libm"
|
||||
( cd "$DIR/../Libraries/LibC/" && "$MAKE" clean && "$MAKE" && "$MAKE" install )
|
||||
( cd "$DIR/../Libraries/LibC/" && "$MAKE" clean && "$MAKE" EXTRA_LIBC_DEFINES="-DBUILDING_SERENITY_TOOLCHAIN" && "$MAKE" install )
|
||||
( cd "$DIR/../Libraries/LibM/" && "$MAKE" clean && "$MAKE" && "$MAKE" install )
|
||||
|
||||
echo "XXX build libstdc++"
|
||||
|
|
Loading…
Reference in a new issue