-
-
Notifications
You must be signed in to change notification settings - Fork 32.3k
gh-114505: Add missing header file dependencies #114513
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
3ef6bb8
1a0763e
47707fc
bc74ade
a551a25
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1398,7 +1398,7 @@ Modules/getpath.o: $(srcdir)/Modules/getpath.c Python/frozen_modules/getpath.h M | |
Programs/python.o: $(srcdir)/Programs/python.c | ||
$(CC) -c $(PY_CORE_CFLAGS) -o $@ $(srcdir)/Programs/python.c | ||
|
||
Programs/_testembed.o: $(srcdir)/Programs/_testembed.c Programs/test_frozenmain.h | ||
Programs/_testembed.o: $(srcdir)/Programs/_testembed.c Programs/test_frozenmain.h $(srcdir)/Include/internal/pycore_initconfig.h $(srcdir)/Include/internal/pycore_runtime.h $(srcdir)/Include/internal/pycore_import.h | ||
$(CC) -c $(PY_CORE_CFLAGS) -o $@ $(srcdir)/Programs/_testembed.c | ||
|
||
Modules/_sre/sre.o: $(srcdir)/Modules/_sre/sre.c $(srcdir)/Modules/_sre/sre.h $(srcdir)/Modules/_sre/sre_constants.h $(srcdir)/Modules/_sre/sre_lib.h | ||
|
@@ -1681,15 +1681,18 @@ PYTHON_HEADERS= \ | |
$(srcdir)/Include/codecs.h \ | ||
$(srcdir)/Include/compile.h \ | ||
$(srcdir)/Include/complexobject.h \ | ||
$(srcdir)/Include/datetime.h \ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is for the datetime C API capsule. Perhaps this dependency should be more targeted. |
||
$(srcdir)/Include/descrobject.h \ | ||
$(srcdir)/Include/dictobject.h \ | ||
$(srcdir)/Include/dynamic_annotations.h \ | ||
$(srcdir)/Include/enumobject.h \ | ||
$(srcdir)/Include/errcode.h \ | ||
$(srcdir)/Include/exports.h \ | ||
$(srcdir)/Include/fileobject.h \ | ||
$(srcdir)/Include/fileutils.h \ | ||
$(srcdir)/Include/floatobject.h \ | ||
$(srcdir)/Include/frameobject.h \ | ||
$(srcdir)/Include/genericaliasobject.h \ | ||
$(srcdir)/Include/import.h \ | ||
$(srcdir)/Include/interpreteridobject.h \ | ||
$(srcdir)/Include/intrcheck.h \ | ||
|
@@ -1708,10 +1711,13 @@ PYTHON_HEADERS= \ | |
$(srcdir)/Include/osdefs.h \ | ||
$(srcdir)/Include/osmodule.h \ | ||
$(srcdir)/Include/patchlevel.h \ | ||
$(srcdir)/Include/py_curses.h \ | ||
smontanaro marked this conversation as resolved.
Show resolved
Hide resolved
|
||
$(srcdir)/Include/pyatomic.h \ | ||
$(srcdir)/Include/pybuffer.h \ | ||
$(srcdir)/Include/pycapsule.h \ | ||
$(srcdir)/Include/pydtrace.h \ | ||
$(srcdir)/Include/pyerrors.h \ | ||
$(srcdir)/Include/pyexpat.h \ | ||
$(srcdir)/Include/pyframe.h \ | ||
$(srcdir)/Include/pyhash.h \ | ||
$(srcdir)/Include/pylifecycle.h \ | ||
|
@@ -1735,6 +1741,7 @@ PYTHON_HEADERS= \ | |
$(srcdir)/Include/sysmodule.h \ | ||
$(srcdir)/Include/traceback.h \ | ||
$(srcdir)/Include/tupleobject.h \ | ||
$(srcdir)/Include/typeslots.h \ | ||
$(srcdir)/Include/unicodeobject.h \ | ||
$(srcdir)/Include/warnings.h \ | ||
$(srcdir)/Include/weakrefobject.h \ | ||
|
@@ -1776,6 +1783,7 @@ PYTHON_HEADERS= \ | |
$(srcdir)/Include/cpython/pthread_stubs.h \ | ||
$(srcdir)/Include/cpython/pyatomic.h \ | ||
$(srcdir)/Include/cpython/pyatomic_gcc.h \ | ||
$(srcdir)/Include/cpython/pyatomic_msc.h \ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Isn't this Windows only? If so, we can probably discard it here in the *nix build. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I agree I was probably overzealous. I'm happy to have some extra dependencies, false positives being better than false negatives in this case. I'll correct my overzealousness. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Rhetorical question: Why don't we use GCC, CLANG, or other compilers' ability to generate include dependencies? I'm thinking stuff like There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
I guess just because the current build system has grown into something that is very hard to maintain, so people in general just try to make as few changes as possible, if any at all. Not to mention |
||
$(srcdir)/Include/cpython/pyatomic_std.h \ | ||
$(srcdir)/Include/cpython/pyctype.h \ | ||
$(srcdir)/Include/cpython/pydebug.h \ | ||
|
@@ -1806,6 +1814,7 @@ PYTHON_HEADERS= \ | |
$(srcdir)/Include/internal/pycore_ast_state.h \ | ||
$(srcdir)/Include/internal/pycore_atexit.h \ | ||
$(srcdir)/Include/internal/pycore_bitutils.h \ | ||
$(srcdir)/Include/internal/pycore_blocks_output_buffer.h \ | ||
$(srcdir)/Include/internal/pycore_bytes_methods.h \ | ||
$(srcdir)/Include/internal/pycore_bytesobject.h \ | ||
$(srcdir)/Include/internal/pycore_call.h \ | ||
|
@@ -1820,34 +1829,44 @@ PYTHON_HEADERS= \ | |
$(srcdir)/Include/internal/pycore_context.h \ | ||
$(srcdir)/Include/internal/pycore_critical_section.h \ | ||
$(srcdir)/Include/internal/pycore_crossinterp.h \ | ||
$(srcdir)/Include/internal/pycore_descrobject.h \ | ||
$(srcdir)/Include/internal/pycore_dict.h \ | ||
$(srcdir)/Include/internal/pycore_dict_state.h \ | ||
$(srcdir)/Include/internal/pycore_descrobject.h \ | ||
$(srcdir)/Include/internal/pycore_dtoa.h \ | ||
$(srcdir)/Include/internal/pycore_emscripten_signal.h \ | ||
$(srcdir)/Include/internal/pycore_emscripten_trampoline.h \ | ||
smontanaro marked this conversation as resolved.
Show resolved
Hide resolved
|
||
$(srcdir)/Include/internal/pycore_exceptions.h \ | ||
$(srcdir)/Include/internal/pycore_faulthandler.h \ | ||
$(srcdir)/Include/internal/pycore_fileutils.h \ | ||
$(srcdir)/Include/internal/pycore_fileutils_windows.h \ | ||
smontanaro marked this conversation as resolved.
Show resolved
Hide resolved
|
||
$(srcdir)/Include/internal/pycore_floatobject.h \ | ||
$(srcdir)/Include/internal/pycore_flowgraph.h \ | ||
$(srcdir)/Include/internal/pycore_format.h \ | ||
$(srcdir)/Include/internal/pycore_frame.h \ | ||
$(srcdir)/Include/internal/pycore_freelist.h \ | ||
$(srcdir)/Include/internal/pycore_function.h \ | ||
$(srcdir)/Include/internal/pycore_gc.h \ | ||
$(srcdir)/Include/internal/pycore_genobject.h \ | ||
$(srcdir)/Include/internal/pycore_getopt.h \ | ||
$(srcdir)/Include/internal/pycore_gil.h \ | ||
$(srcdir)/Include/internal/pycore_global_objects.h \ | ||
$(srcdir)/Include/internal/pycore_global_objects_fini_generated.h \ | ||
$(srcdir)/Include/internal/pycore_global_strings.h \ | ||
$(srcdir)/Include/internal/pycore_hamt.h \ | ||
$(srcdir)/Include/internal/pycore_hashtable.h \ | ||
$(srcdir)/Include/internal/pycore_identifier.h \ | ||
$(srcdir)/Include/internal/pycore_import.h \ | ||
$(srcdir)/Include/internal/pycore_importdl.h \ | ||
$(srcdir)/Include/internal/pycore_initconfig.h \ | ||
$(srcdir)/Include/internal/pycore_instruments.h \ | ||
$(srcdir)/Include/internal/pycore_interp.h \ | ||
$(srcdir)/Include/internal/pycore_intrinsics.h \ | ||
$(srcdir)/Include/internal/pycore_list.h \ | ||
$(srcdir)/Include/internal/pycore_llist.h \ | ||
$(srcdir)/Include/internal/pycore_lock.h \ | ||
$(srcdir)/Include/internal/pycore_long.h \ | ||
$(srcdir)/Include/internal/pycore_memoryobject.h \ | ||
$(srcdir)/Include/internal/pycore_mimalloc.h \ | ||
$(srcdir)/Include/internal/pycore_modsupport.h \ | ||
$(srcdir)/Include/internal/pycore_moduleobject.h \ | ||
$(srcdir)/Include/internal/pycore_namespace.h \ | ||
|
@@ -1860,12 +1879,14 @@ PYTHON_HEADERS= \ | |
$(srcdir)/Include/internal/pycore_opcode_utils.h \ | ||
$(srcdir)/Include/internal/pycore_optimizer.h \ | ||
$(srcdir)/Include/internal/pycore_parking_lot.h \ | ||
$(srcdir)/Include/internal/pycore_parser.h \ | ||
$(srcdir)/Include/internal/pycore_pathconfig.h \ | ||
$(srcdir)/Include/internal/pycore_pyarena.h \ | ||
$(srcdir)/Include/internal/pycore_pybuffer.h \ | ||
$(srcdir)/Include/internal/pycore_pyerrors.h \ | ||
$(srcdir)/Include/internal/pycore_pyhash.h \ | ||
$(srcdir)/Include/internal/pycore_pylifecycle.h \ | ||
$(srcdir)/Include/internal/pycore_pymath.h \ | ||
$(srcdir)/Include/internal/pycore_pymem.h \ | ||
$(srcdir)/Include/internal/pycore_pymem_init.h \ | ||
$(srcdir)/Include/internal/pycore_pystate.h \ | ||
|
@@ -1874,8 +1895,8 @@ PYTHON_HEADERS= \ | |
$(srcdir)/Include/internal/pycore_pythread.h \ | ||
$(srcdir)/Include/internal/pycore_range.h \ | ||
$(srcdir)/Include/internal/pycore_runtime.h \ | ||
$(srcdir)/Include/internal/pycore_runtime_init_generated.h \ | ||
$(srcdir)/Include/internal/pycore_runtime_init.h \ | ||
$(srcdir)/Include/internal/pycore_runtime_init_generated.h \ | ||
$(srcdir)/Include/internal/pycore_semaphore.h \ | ||
$(srcdir)/Include/internal/pycore_setobject.h \ | ||
$(srcdir)/Include/internal/pycore_signal.h \ | ||
|
@@ -1893,9 +1914,10 @@ PYTHON_HEADERS= \ | |
$(srcdir)/Include/internal/pycore_typeobject.h \ | ||
$(srcdir)/Include/internal/pycore_typevarobject.h \ | ||
$(srcdir)/Include/internal/pycore_ucnhash.h \ | ||
$(srcdir)/Include/internal/pycore_unionobject.h \ | ||
$(srcdir)/Include/internal/pycore_unicodeobject.h \ | ||
$(srcdir)/Include/internal/pycore_unicodeobject_generated.h \ | ||
$(srcdir)/Include/internal/pycore_unionobject.h \ | ||
$(srcdir)/Include/internal/pycore_uop_ids.h \ | ||
$(srcdir)/Include/internal/pycore_uop_metadata.h \ | ||
$(srcdir)/Include/internal/pycore_warnings.h \ | ||
$(srcdir)/Include/internal/pycore_weakref.h \ | ||
|
Uh oh!
There was an error while loading. Please reload this page.