Skip to content

Commit 06cc348

Browse files
committed
Fix out-of-tree build
1 parent 8e7fe03 commit 06cc348

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎Makefile.pre.in‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1882,7 +1882,8 @@ Modules/getbuildinfo.h: $(PARSER_OBJS) \
18821882
"`Programs/_getcompiler`"
18831883

18841884
Modules/getbuildinfo.o: $(srcdir)/Modules/getbuildinfo.c Modules/getbuildinfo.h
1885-
$(CC) -c $(PY_CORE_CFLAGS) -o $@ $(srcdir)/Modules/getbuildinfo.c
1885+
# Add local Modules/ to include directories to get Modules/getbuildinfo.h
1886+
$(CC) -c $(PY_CORE_CFLAGS) -IModules/ -o $@ $(srcdir)/Modules/getbuildinfo.c
18861887

18871888
Modules/getpath.o: $(srcdir)/Modules/getpath.c Python/frozen_modules/getpath.h Makefile $(PYTHON_HEADERS)
18881889
$(CC) -c $(PY_CORE_CFLAGS) -DPYTHONPATH='"$(PYTHONPATH)"' \

0 commit comments

Comments
 (0)