The arm64-apple-macos triple is only valid for versions >= 11.0. (If
one passes arm64-apple-macos10.15 to llvm-mc, the output's min version is still
11.0). In order to write tests easily for both target archs, let's up the
default min version in our tests.
Details
- Reviewers
thakis - Group Reviewers
Restricted Project - Commits
- rG19bb38b9c93c: [lld-macho][nfc] Set test min version to 11.0
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
I don't have a problem with the change, but I also don't understand the motivation. llc (and clang) transparently setting the os to 11.0 for arm is a feature (there are no arm macs running 10.15). It makes it _easier_ to write your build files (want to target 10.14? set mmacosx-version-min=10.14, and it'll automatically do the right thing in the arm part of your build).
lld tests that want to test version handling want to use %no-arg-lld anyways so we don't have to change everything when we change this default.
So I don't get the benefit behind this change. (But I also don't see a problem with it, so feel free to land if it's useful in some way I miss!)
Ah I want this for my eh-frame.s test in D124561: [lld-macho] Support EH frames under arm64 in order that I can use %lld -arch arm64 rather than %no-arg-lld. (Since the macOS TBDs support both x86_64 and arm64, there's no need to specify a different -platform_version or -syslibroot.)