Skip to content

Fix Bugzilla 20297 - Link warning: no platform load command found in object.o, assuming: macOS#16223

Merged
thewilsonator merged 1 commit intodlang:stablefrom
ibuclaw:issue20297
Feb 22, 2024
Merged

Fix Bugzilla 20297 - Link warning: no platform load command found in object.o, assuming: macOS#16223
thewilsonator merged 1 commit intodlang:stablefrom
ibuclaw:issue20297

Conversation

@ibuclaw
Copy link
Member

@ibuclaw ibuclaw commented Feb 22, 2024

Encode .macosx_version_min or .build_version into the object file, originally authored by @jacob-carlborg in #10476.

This has been simplified to omit parsing the SDK version. Based on what I see GCC is doing (-platform_version macos $version_min 0.0), this information is not required in order for things to work. Should support for SDKs/frameworks be wanted in future, then that can be done as a feature, not a bug fix.

This is good for both i386 and x86_64, as .macosx_version_min has been around since the beginning of macOS X.

No tests required as it effects all objects compiled by dmd.

(And earlier iteration of this was done in #16178).

@ibuclaw ibuclaw added Severity:Bug Fix Compiler:Backend glue code, optimizer, code generation labels Feb 22, 2024
@dlang-bot
Copy link
Contributor

Thanks for your pull request, @ibuclaw!

Bugzilla references

Auto-close Bugzilla Severity Description
20297 normal ld: warning: no platform load command found for macOS

Testing this PR locally

If you don't have a local development environment setup, you can use Digger to test this PR:

dub run digger -- build "stable + dmd#16223"

…object.o, assuming: macOS

Co-authored-by: Jacob Carlborg <doob@me.com>
@thewilsonator thewilsonator merged commit b40eb09 into dlang:stable Feb 22, 2024
@ibuclaw ibuclaw deleted the issue20297 branch February 22, 2024 12:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Compiler:Backend glue code, optimizer, code generation Merge:auto-merge Severity:Bug Fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants