Skip to content

Commit

Permalink
replace DATE, TIME and COMPILER by fixed definitions to aid reproduci…
Browse files Browse the repository at this point in the history
…ble builds
  • Loading branch information
mcepl committed Apr 3, 2024
1 parent 7c5a14f commit 6614c18
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Makefile.pre.in
Original file line number Diff line number Diff line change
Expand Up @@ -738,11 +738,18 @@ Modules/getbuildinfo.o: $(PARSER_OBJS) \
$(MODOBJS) \
$(srcdir)/Modules/getbuildinfo.c
$(CC) -c $(PY_CORE_CFLAGS) \
-DDATE="\"`date -u -r Makefile.pre.in +"%b %d %Y"`\"" \
-DTIME="\"`date -u -r Makefile.pre.in +"%T"`\"" \
-DGITVERSION="\"`LC_ALL=C $(GITVERSION)`\"" \
-DGITTAG="\"`LC_ALL=C $(GITTAG)`\"" \
-DGITBRANCH="\"`LC_ALL=C $(GITBRANCH)`\"" \
-o $@ $(srcdir)/Modules/getbuildinfo.c

Python/getcompiler.o: $(srcdir)/Python/getcompiler.c Makefile
$(CC) -c $(PY_CORE_CFLAGS) \
-DCOMPILER='"[GCC]"' \
-o $@ $(srcdir)/Python/getcompiler.c

Modules/getpath.o: $(srcdir)/Modules/getpath.c Makefile
$(CC) -c $(PY_CORE_CFLAGS) -DPYTHONPATH='"$(PYTHONPATH)"' \
-DPREFIX='"$(prefix)"' \
Expand Down

0 comments on commit 6614c18

Please sign in to comment.