diff options
author | Nathan Sidwell <nathan@acm.org> | 2020-12-08 04:59:09 -0800 |
---|---|---|
committer | Nathan Sidwell <nathan@acm.org> | 2020-12-08 05:07:30 -0800 |
commit | 0f2da02b2373078e96bb44fe83f5b7fd303414a6 (patch) | |
tree | 1a0e01d672f1668ac720a28a2aa95647d3af6519 /gcc/cp/Make-lang.in | |
parent | 6a789a9e2dfcb6de4ce12b6035c954f346914f53 (diff) | |
download | gcc-0f2da02b2373078e96bb44fe83f5b7fd303414a6.zip gcc-0f2da02b2373078e96bb44fe83f5b7fd303414a6.tar.gz gcc-0f2da02b2373078e96bb44fe83f5b7fd303414a6.tar.bz2 |
c++: Add module includes
gcc/cp/
* Make-lang.in (MODULE_VERSION): Define.
* module.cc: Add includes.
Diffstat (limited to 'gcc/cp/Make-lang.in')
-rw-r--r-- | gcc/cp/Make-lang.in | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/gcc/cp/Make-lang.in b/gcc/cp/Make-lang.in index ebfdc90..d7dc0de 100644 --- a/gcc/cp/Make-lang.in +++ b/gcc/cp/Make-lang.in @@ -57,6 +57,15 @@ CFLAGS-cp/g++spec.o += $(DRIVER_DEFINES) CFLAGS-cp/module.o += -DHOST_MACHINE=\"$(host)\" \ -DTARGET_MACHINE=\"$(target)\" +ifeq ($(DEVPHASE_c),experimental) +# Some date's don't grok 'r', if so, simply use today's +# date (don't bootstrap at midnight). +MODULE_VERSION := $(shell date -r $(srcdir)/cp/module.cc '+%y%m%d-%H%M' \ + 2>/dev/null || date '+%y%m%d-0000' 2>/dev/null || echo 0) + +CFLAGS-cp/module.o += -DMODULE_VERSION='($(subst -,,$(MODULE_VERSION))U)' +endif + # Create the compiler driver for g++. GXX_OBJS = $(GCC_OBJS) cp/g++spec.o xg++$(exeext): $(GXX_OBJS) $(EXTRA_GCC_OBJS) libcommon-target.a $(LIBDEPS) |