Skip to content
Open
Changes from 1 commit
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
54ba2c0
gh-158948: Add auto-generated Module/getbuildinfo.h
vstinner Oct 6, 2026
508e3ca
Fix and reforamt generate_getbuildinfo.py
vstinner Oct 7, 2026
8e7fe03
Look for pyconfig.h in the current working directory
vstinner Oct 7, 2026
06cc348
Fix out-of-tree build
vstinner Oct 7, 2026
7c10d0b
Short comment
vstinner Oct 7, 2026
8c2dcce
Update PCbuild/_freeze_module.vcxproj
vstinner Oct 7, 2026
7882331
Update Tools/c-analyzer/cpython/ignored.tsv
vstinner Oct 7, 2026
22d1a6b
Don't redefine PY_VERSION
vstinner Oct 7, 2026
61ddc42
Remove useless getbuildinfo.h dependencies
vstinner Oct 7, 2026
1ae6b29
Add _getcompiler project on Windows
vstinner Oct 7, 2026
cd00cdb
Temporary workaround for cross-compilation
vstinner Oct 7, 2026
9a56153
Update PCbuild/pcbuild.proj
vstinner Oct 7, 2026
eab1b0e
Fix build when there is not .git/ directory (test_tools)
vstinner Oct 7, 2026
a0780d4
Enhance generate_getbuildinfo.py
vstinner Oct 7, 2026
0c8ad79
Run directly the compiler (--version) if _getcompiler failed
vstinner Oct 7, 2026
0d50e2e
Reuse sysconfig parsers
vstinner Oct 7, 2026
98519e1
Simplify _getcompiler build command
vstinner Oct 7, 2026
05a9779
Fix typo
vstinner Oct 7, 2026
11cd830
Strip URL from verbose Clang version
vstinner Oct 7, 2026
dc6d476
Strip '[ and ']' from COMPILER and _Py_COMPILER
vstinner Oct 7, 2026
ad75107
Tolerate "cc --version" failure, use "C" compiler by default
vstinner Oct 7, 2026
4281ae9
Cleanup get_compiler() code
vstinner Oct 8, 2026
d6fd2d4
Shorter clang version; add tests
vstinner Oct 8, 2026
aa9a4aa
Fix test
vstinner Oct 8, 2026
b036e72
Keep the vendor (Android or Apple) in Clang version
vstinner Oct 8, 2026
1d9bb17
Revert unrelated changes
vstinner Oct 8, 2026
ebaadbc
Log the truncated compiler string
vstinner Oct 8, 2026
2c9bafb
Support old sysconfig versions
vstinner Oct 8, 2026
8431d21
Fix Makefile (_getcompiler) for BSD make
vstinner Oct 8, 2026
e53aa5d
Do not truncate compiler versions generated by PC/pyconfig.h
vstinner Oct 9, 2026
3b179ca
generate_getbuildinfo.py now runs git commands on Windows
vstinner Oct 9, 2026
556de20
generate_getbuildinfo.py now runs _getcompiler program on Windows
vstinner Oct 9, 2026
874ce6d
Update tests
vstinner Oct 9, 2026
db0495d
Please the lords of linters
vstinner Oct 9, 2026
3cc52ef
Build FreezeProjects with Platform, not PreferredToolArchitecture
vstinner Oct 9, 2026
8feb3ad
Update test on Windows
vstinner Oct 9, 2026
dffcfb8
On Windows, get the C compiler version if running _getcompiler fails
vstinner Oct 9, 2026
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
Prev Previous commit
Next Next commit
Fix out-of-tree build
  • Loading branch information
vstinner committed Oct 7, 2026
commit 06cc3482e7bda8f767afa00d9854fadef0b86bae
3 changes: 2 additions & 1 deletion Makefile.pre.in
Original file line number Diff line number Diff line change
Expand Up @@ -1882,7 +1882,8 @@ Modules/getbuildinfo.h: $(PARSER_OBJS) \
"`Programs/_getcompiler`"

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

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