GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — gh-144121: Allow overriding COMPILER with UNVERSIONED_COMPILER by mcepl · Pull Request #144124 · python/cpython

Conversation

@mcepl

@mcepl mcepl commented Jan 21, 2026 •
edited by bedevere-app Bot
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Introduce UNVERSIONED_COMPILER variable in Makefile.pre.in to allow overriding the COMPILER macro definition during the build of Python/getcompiler.o.

This enables reproducible builds by providing a way to set a generic compiler identification string (e.g., "[GCC]") instead of the default versioned one.

The rule is made conditional on UNVERSIONED_COMPILER being defined.

References: https://discuss.python.org/t/unversioned-compiler-symbol-for-getcompiler-c/91735
Fixes: #144121

  • Issue: Make COMPILER definition in getcompiler.c optionally static for reproducible builds #144121

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@mcepl
mcepl requested review from AA-Turner, emmatyping and erlend-aasland as code owners January 21, 2026 18:29
@bedevere-app bedevere-app Bot added the awaiting review label Jan 21, 2026
@mcepl mcepl changed the title Allow overriding COMPILER with UNVERSIONED_COMPILER gh-144124: Allow overriding COMPILER with UNVERSIONED_COMPILER Jan 21, 2026
@mcepl
mcepl force-pushed the COMPILER-getcompiler.c branch from 6f12a2b to a787988 Compare January 21, 2026 18:31
@mcepl mcepl changed the title gh-144124: Allow overriding COMPILER with UNVERSIONED_COMPILER gh-144121: Allow overriding COMPILER with UNVERSIONED_COMPILER Jan 21, 2026
@bedevere-app bedevere-app Bot mentioned this pull request Jan 21, 2026
Make COMPILER definition in getcompiler.c optionally static for reproducible builds #144121
Open
@mcepl
mcepl force-pushed the COMPILER-getcompiler.c branch 2 times, most recently from 51bb66b to 39f408f Compare January 21, 2026 18:34
@hugovk hugovk added the build The build process and cross-build label Jan 21, 2026
@mcepl
mcepl force-pushed the COMPILER-getcompiler.c branch from c3fe01e to 382b56d Compare January 26, 2026 15:00
@github-actions

github-actions Bot commented May 5, 2026

Copy link
Copy Markdown

This PR is stale because it has been open for 30 days with no activity.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@github-actions github-actions Bot added the stale Stale PR or inactive for long period of time. label May 5, 2026
@mcepl
mcepl force-pushed the COMPILER-getcompiler.c branch from 382b56d to f5e8c6b Compare May 5, 2026 14:11
@github-actions github-actions Bot removed the stale Stale PR or inactive for long period of time. label May 17, 2026
@mcepl
mcepl requested a review from itamaro as a code owner July 14, 2026 08:11
@vstinner vstinner mentioned this pull request Oct 8, 2026
gh-158948: Generate Modules/getbuildinfo.h #158951
Open
@vstinner

vstinner commented Oct 8, 2026

Copy link
Copy Markdown
Member

I created #158951 which will make it easier to override build information strings, such as the compiler string. But the change itself doesn't add this ability.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@mcepl
Allow overriding COMPILER with UNVERSIONED_COMPILER
0dc146c
Introduce UNVERSIONED_COMPILER variable in Makefile.pre.in to allow
overriding the COMPILER macro definition during the build of
Python/getcompiler.o.

This enables reproducible builds by providing a way to set a generic
compiler identification string (e.g., "[GCC]") instead of the default
versioned one.

The rule is made conditional on UNVERSIONED_COMPILER being defined.

References: https://discuss.python.org/t/unversioned-compiler-symbol-for-getcompiler-c/91735
Fixes: python#144121
@mcepl
mcepl force-pushed the COMPILER-getcompiler.c branch from cb71f85 to 0dc146c Compare October 23, 2026 18:30
@bedevere-app bedevere-app Bot added the type-feature A feature request or enhancement label Oct 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@erlend-aasland erlend-aasland Awaiting requested review from erlend-aasland erlend-aasland is a code owner
@AA-Turner AA-Turner Awaiting requested review from AA-Turner AA-Turner is a code owner
@emmatyping emmatyping Awaiting requested review from emmatyping emmatyping is a code owner
@itamaro itamaro Awaiting requested review from itamaro itamaro is a code owner

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

awaiting review build The build process and cross-build type-feature A feature request or enhancement

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Make COMPILER definition in getcompiler.c optionally static for reproducible builds

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@mcepl @vstinner @hugovk
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.