Add a stub C++ standard library.
This is necessary to build libunwind.
This commit is contained in:
parent
5502cec3da
commit
7a9975ab5a
|
@ -42,7 +42,7 @@ endif
|
|||
INCLUDES = -I$(MSCDIR)/software/include/base -I$(MSCDIR)/software/include -I$(MSCDIR)/common
|
||||
COMMONFLAGS = -Os $(CPUFLAGS) -Wall -fno-builtin -nostdinc -DMSC_GIT_ID=$(MSC_GIT_ID) $(INCLUDES)
|
||||
CFLAGS = $(COMMONFLAGS) -fexceptions -Wstrict-prototypes -Wold-style-definition -Wmissing-prototypes
|
||||
CXXFLAGS = $(COMMONFLAGS) -fexceptions -fno-rtti -ffreestanding
|
||||
CXXFLAGS = $(COMMONFLAGS) -std=c++11 -I$(MSCDIR)/software/include/basec++ -fexceptions -fno-rtti -ffreestanding
|
||||
LDFLAGS = -nostdlib -nodefaultlibs -L$(MSCDIR)/software/include
|
||||
|
||||
# compile and generate dependencies, based on
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
#ifndef __CXX_ALGORITHM
|
||||
#define __CXX_ALGORITHM
|
||||
|
||||
#endif /* __CXX_ALGORITHM */
|
|
@ -0,0 +1,11 @@
|
|||
#ifndef __CXX_CSTDDEF
|
||||
#define __CXX_CSTDDEF
|
||||
|
||||
#include <stddef.h>
|
||||
|
||||
namespace std {
|
||||
using ::size_t;
|
||||
using ::ptrdiff_t;
|
||||
}
|
||||
|
||||
#endif /* __CXX_CSTDDEF */
|
|
@ -0,0 +1,6 @@
|
|||
#ifndef __CXX_CSTDLIB
|
||||
#define __CXX_CSTDLIB
|
||||
|
||||
#include <stdlib.h>
|
||||
|
||||
#endif /* __CXX_CSTDLIB */
|
|
@ -0,0 +1,4 @@
|
|||
#ifndef __CXX_MEMORY
|
||||
#define __CXX_MEMORY
|
||||
|
||||
#endif /* __CXX_MEMORY */
|
|
@ -0,0 +1,9 @@
|
|||
#ifndef __CXX_NEW
|
||||
#define __CXX_NEW
|
||||
|
||||
#include <cstddef>
|
||||
|
||||
inline void* operator new (std::size_t size, void* ptr) noexcept
|
||||
{ return ptr; }
|
||||
|
||||
#endif /* __CXX_NEW */
|
|
@ -0,0 +1,4 @@
|
|||
#ifndef __CXX_TUPLE
|
||||
#define __CXX_TUPLE
|
||||
|
||||
#endif /* __CXX_TUPLE */
|
|
@ -0,0 +1,4 @@
|
|||
#ifndef __CXX_VECTOR
|
||||
#define __CXX_VECTOR
|
||||
|
||||
#endif /* __CXX_VECTOR */
|
Loading…
Reference in New Issue