Skip to content

fix xcode 26 -Ofast deprecation warning#2606

Merged
nickclark2016 merged 1 commit intopremake:masterfrom
artamonovoleg:master
Jan 19, 2026
Merged

fix xcode 26 -Ofast deprecation warning#2606
nickclark2016 merged 1 commit intopremake:masterfrom
artamonovoleg:master

Conversation

@artamonovoleg
Copy link
Contributor

What does this PR do?

In newer version of clang used by Xcode 26 -Ofast is deprecated and produces a warning.
This PR replaces -Ofast with -O3 --ffast-math.

clang: error: argument '-Ofast' is deprecated; use '-O3 -ffast-math' for the same behavior, or '-O3' to enable
only conforming optimizations [-Werror,-Wdeprecated-ofast]

Did you check all the boxes?

  • Focus on a single fix or feature; remove any unrelated formatting or code changes
  • Add unit tests showing fix or feature works; all tests pass
  • Mention any related issues (put closes #XXXX in comment to auto-close issue when PR is merged)
  • Follow our coding conventions
  • Minimize the number of commits
  • Align documentation to your changes

You can now support Premake on our OpenCollective. Your contributions help us spend more time responding to requests like these!

@nickclark2016 nickclark2016 merged commit 63f1c86 into premake:master Jan 19, 2026
53 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants