[lld-macho][nfc] Set test min version to 11.0
authorJez Ng <jezng@fb.com>
Wed, 4 May 2022 22:01:34 +0000 (18:01 -0400)
committerJez Ng <jezng@fb.com>
Wed, 4 May 2022 22:01:34 +0000 (18:01 -0400)
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.

Reviewed By: #lld-macho, thakis

Differential Revision: https://reviews.llvm.org/D124562

lld/test/MachO/lit.local.cfg

index f1c4eab..bfeacfa 100644 (file)
@@ -19,7 +19,7 @@ config.substitutions.append(('%no-arg-lld', 'ld64.lld'))
 
 # Since most of our tests are written around x86_64, we give this platform the
 # shortest substitution of "%lld".
-lld = ('ld64.lld -arch x86_64 -platform_version macos 10.15 11.0 -syslibroot ' +
+lld = ('ld64.lld -arch x86_64 -platform_version macos 11.0 11.0 -syslibroot ' +
     os.path.join(config.test_source_root, "MachO", "Inputs", "MacOSX.sdk"))
 config.substitutions.append(('%lld', lld + ' -fatal_warnings'))
 config.substitutions.append(('%no-fatal-warnings-lld', lld))