Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions Makefile.pre.in
Original file line number Diff line number Diff line change
Expand Up @@ -1926,6 +1926,13 @@ Modules/getbuildinfo.o: $(PARSER_OBJS) \
-DGITBRANCH="\"`LC_ALL=C $(GITBRANCH)`\"" \
-o $@ $(srcdir)/Modules/getbuildinfo.c

ifdef UNVERSIONED_COMPILER
Python/getcompiler.o: $(srcdir)/Python/getcompiler.c Makefile
$(CC) -c $(PY_CORE_CFLAGS) \
-DCOMPILER='"$(UNVERSIONED_COMPILER)"' \
-o $@ $(srcdir)/Python/getcompiler.c
endif

Modules/getpath.o: $(srcdir)/Modules/getpath.c Python/frozen_modules/getpath.h Makefile $(PYTHON_HEADERS)
$(CC) -c $(PY_CORE_CFLAGS) -DPYTHONPATH='"$(PYTHONPATH)"' \
-DPREFIX='"$(host_prefix)"' \
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Make it possible for the COMPILER definition in getcompiler.c to be static
in order to make builds reproducible.
Loading