Explorar o código

Generalize -DD option outside cycle

  Add -DD option to LOCALOPT
  if FPC_VERSION is equal to PACKAGE_VERSION

  This is to avoid get different dates for
native compiler generated using 'make cycle'
versus cross-compilers.
Pierre Muller %!s(int64=2) %!d(string=hai) anos
pai
achega
c335591b70
Modificáronse 1 ficheiros con 6 adicións e 0 borrados
  1. 6 0
      compiler/Makefile.fpc

+ 6 - 0
compiler/Makefile.fpc

@@ -235,6 +235,12 @@ override RTLOPT+=$(RTLOPTLEVEL4)
 override LOCALOPT+=$(OPTNEW)
 override RTLOPT+=$(OPTNEW)
 endif
+else
+ifdef COMPDATESTR
+ifeq ($(FPC_VERSION),$(PACKAGE_VERSION))
+override LOCALOPT+=-DD$(COMPDATESTR)
+endif
+endif
 endif
 
 # Make OPT empty. It is copied to LOCALOPT and RTLOPT