浏览代码

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 2 年之前
父节点
当前提交
c335591b70
共有 1 个文件被更改,包括 6 次插入0 次删除
  1. 6 0
      compiler/Makefile.fpc

+ 6 - 0
compiler/Makefile.fpc

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