Skip to content

Commit 1c541aa

Browse files
[Apple][NFC] Update macOS aligned version for lit config (#143576)
This updates the aligned version for version 26. Note: This change is for correctness only and has no functional impact currently. `get_macos_aligned_version` is currently only consumed when substituting flags based on min version. rdar://152851947
1 parent 283a62f commit 1c541aa

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

compiler-rt/test/lit.common.cfg.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -602,12 +602,12 @@ def get_ios_commands_dir():
602602

603603
def get_macos_aligned_version(macos_vers):
604604
platform = config.apple_platform
605-
if platform == "osx":
605+
macos_major, macos_minor = macos_vers
606+
607+
if platform == "osx" or macos_major >= 26:
606608
return macos_vers
607609

608-
macos_major, macos_minor = macos_vers
609610
assert macos_major >= 10
610-
611611
if macos_major == 10: # macOS 10.x
612612
major = macos_minor
613613
minor = 0

0 commit comments

Comments
 (0)