[PATCH] D82836: [macho] emit LC_BUILD_VERSION load command for supported OSes and platforms

Alex Lorenz via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 29 21:28:36 PDT 2020


arphaman created this revision.
arphaman added a reviewer: steven_wu.
Herald added subscribers: ributzka, dexonsmith, jkorous, hiraditya.
Herald added a project: LLVM.

This change lets LLVM use the LC_BUILD_VERSION command when building for macOS 10.14, iOS 12, tvOS 12, and watchOS 5. Additionally, this change ensures that new platforms like Apple Silicon macOS / Mac Catalyst, and simulators running on Apple Silicon alway use LC_BUILD_VERSION with the OS version set to the minimum supported OS version if the deployment target version is older.


https://reviews.llvm.org/D82836

Files:
  llvm/lib/MC/MCStreamer.cpp
  llvm/lib/Support/Triple.cpp
  llvm/test/MC/MachO/darwin-version-min-load-command.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D82836.274326.patch
Type: text/x-patch
Size: 15164 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200630/5391a52d/attachment-0001.bin>


More information about the llvm-commits mailing list