mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 12:37:44 +00:00
Toolchain: Build demangling into LibC except during toolchain build
This commit is contained in:
parent
59c052a72a
commit
c4c1ad2289
3 changed files with 4 additions and 4 deletions
|
@ -28,7 +28,7 @@
|
||||||
|
|
||||||
#include <AK/String.h>
|
#include <AK/String.h>
|
||||||
|
|
||||||
#ifndef SERENITY_LIBC_BUILD
|
#ifndef BUILDING_SERENITY_TOOLCHAIN
|
||||||
#include <cxxabi.h>
|
#include <cxxabi.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -36,7 +36,7 @@ namespace AK {
|
||||||
|
|
||||||
inline String demangle(const StringView& name)
|
inline String demangle(const StringView& name)
|
||||||
{
|
{
|
||||||
#ifdef SERENITY_LIBC_BUILD
|
#ifdef BUILDING_SERENITY_TOOLCHAIN
|
||||||
return name;
|
return name;
|
||||||
#else
|
#else
|
||||||
int status = 0;
|
int status = 0;
|
||||||
|
|
|
@ -81,7 +81,7 @@ crtn.o: crtin.ao
|
||||||
|
|
||||||
EXTRA_CLEAN = crt0.d crt0.o
|
EXTRA_CLEAN = crt0.d crt0.o
|
||||||
|
|
||||||
DEFINES = -DSERENITY_LIBC_BUILD
|
DEFINES = -DSERENITY_LIBC_BUILD $(EXTRA_LIBC_DEFINES)
|
||||||
|
|
||||||
LIBRARY = libc.a
|
LIBRARY = libc.a
|
||||||
|
|
||||||
|
|
|
@ -148,7 +148,7 @@ pushd "$DIR/Build/"
|
||||||
"$MAKE" install-gcc install-target-libgcc || exit 1
|
"$MAKE" install-gcc install-target-libgcc || exit 1
|
||||||
|
|
||||||
echo "XXX serenity libc and libm"
|
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 )
|
( cd "$DIR/../Libraries/LibM/" && "$MAKE" clean && "$MAKE" && "$MAKE" install )
|
||||||
|
|
||||||
echo "XXX build libstdc++"
|
echo "XXX build libstdc++"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue