File tree Expand file tree Collapse file tree 2 files changed +21
-4
lines changed Expand file tree Collapse file tree 2 files changed +21
-4
lines changed Original file line number Diff line number Diff line change 138
138
# define _LIBCPP_INTRODUCED_IN_LLVM_19_ATTRIBUTE __attribute__ ((unavailable))
139
139
140
140
// LLVM 18
141
- // TODO: Fill this in
142
- # define _LIBCPP_INTRODUCED_IN_LLVM_18 0
143
- # define _LIBCPP_INTRODUCED_IN_LLVM_18_ATTRIBUTE __attribute__ ((unavailable))
141
+ # if (defined(__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__) && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 150000) || \
142
+ (defined(__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__) && __ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__ < 180000 ) || \
143
+ (defined(__ENVIRONMENT_TV_OS_VERSION_MIN_REQUIRED__) && __ENVIRONMENT_TV_OS_VERSION_MIN_REQUIRED__ < 180000 ) || \
144
+ (defined(__ENVIRONMENT_WATCH_OS_VERSION_MIN_REQUIRED__) && __ENVIRONMENT_WATCH_OS_VERSION_MIN_REQUIRED__ < 110000 )
145
+ # define _LIBCPP_INTRODUCED_IN_LLVM_18 0
146
+ # else
147
+ # define _LIBCPP_INTRODUCED_IN_LLVM_18 1
148
+ # endif
149
+ # define _LIBCPP_INTRODUCED_IN_LLVM_18_ATTRIBUTE \
150
+ __attribute__ ((availability(macos, strict, introduced = 15.0 ))) \
151
+ __attribute__((availability(ios, strict, introduced = 18.0 ))) \
152
+ __attribute__((availability(tvos, strict, introduced = 18.0 ))) \
153
+ __attribute__((availability(watchos, strict, introduced = 11.0 )))
144
154
145
155
// LLVM 17
146
156
# if (defined(__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__) && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 140400) || \
Original file line number Diff line number Diff line change @@ -610,10 +610,17 @@ def check_gdb(cfg):
610
610
# Helpers to define correspondances between LLVM versions and vendor system versions.
611
611
# Those are used for backdeployment features below, do not use directly in tests.
612
612
DEFAULT_FEATURES += [
613
+ Feature (
614
+ name = "_target-has-llvm-18" ,
615
+ when = lambda cfg : BooleanExpression .evaluate (
616
+ "target={{.+}}-apple-macosx{{15(.[0-9]+)?(.[0-9]+)?}}" ,
617
+ cfg .available_features ,
618
+ ),
619
+ ),
613
620
Feature (
614
621
name = "_target-has-llvm-17" ,
615
622
when = lambda cfg : BooleanExpression .evaluate (
616
- "target={{.+}}-apple-macosx{{14.[4-9](.0)?}} || target={{.+}}-apple-macosx{{1[5-9]([.].+)?}}" ,
623
+ "_target-has-llvm-18 || target={{.+}}-apple-macosx{{14.[4-9](.0)?}} || target={{.+}}-apple-macosx{{1[5-9]([.].+)?}}" ,
617
624
cfg .available_features ,
618
625
),
619
626
),
You can’t perform that action at this time.
0 commit comments