[PATCH] D121868: [cc1as] Add support for emitting the build version load command for -darwin-target-variant

Nico Weber via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Apr 20 08:15:36 PDT 2022


thakis added a comment.

Hm, is adding this flag the right thing to do? Looking at clang's -S output for (say) ` -target arm64-apple-macos -darwin-target-variant arm64-apple-ios13.1-macab`, it emits lines like:

  	.build_version macos, 12, 0	sdk_version 12, 3
  	.build_version macCatalyst, 14, 0	sdk_version 15, 4

That suggests that this should be part of the .s file instead of a flag to cc1as (?)


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D121868/new/

https://reviews.llvm.org/D121868



More information about the cfe-commits mailing list