Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
pypy
pypy
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 603
    • Issues 603
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 13
    • Merge Requests 13
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • PyPy
  • pypypypy
  • Merge Requests
  • !762

Open
Created Sep 27, 2020 by Dan Villiom Podlaski Christiansen@danDeveloper
  • Report abuse
Report abuse

Set and save MACOSX_DEPLOYMENT_TARGET during translation (2.7)

  • Overview 6
  • Commits 5
  • Pipelines 2
  • Changes 8

MACOSX_DEPLOYMENT_TARGET specifies which OS version to target. It is commonly set using an environment variable, so I added the ability to do so for the translation options. The default is unchanged, but the MacPorts port always sets this to the current OS, so this should allow me to remove some patches from it.

One benefit of specifying this in the translation options is that tests shouldn't be affected by it, ensuring maximum coverage.

The clock_gettime() function was added in macOS 10.12, but forcibly disabled in PyPy. Now that we can rely on checks actually detecting which OS to target, I adjusted the check to reject it when targeting 10.7, even though it isn't available in CPython 2.7 on macOS. The main motivation is that it provides a good canary check; if the function is present in products from the buildbot, this branch doesn't work.

This replaces !758 (closed).

Assignee
Assign to
Reviewer
Request review from
None
Milestone
None
Assign milestone
Time tracking
Source branch: branch/macosx-deployment-target-2.7